kirthi97, you posed this question before but did not answer my questions.
theniteowl said:
kirthi97, can you give more detail about the steps you are trying to take? I do not quite understand all of what you want to accomplish.
You say the XML file is on your server and you want to send it to another company. You also say though that the other company retrieves the file with XMLHTTP and XMLDOM which sounds like conflicting information to me.
Is this to be an automated process or is it going to require you to post the file from your end?
Is the file on your web server or on a file server?
If a web server, what type of server and what server-side language do you have available?
It is possible to access the file with Javascript but how depends a lot on where the file resides and what you want to do with it.
Sorry I cannot be real specific because I do not understand your particular circumstances.
If the file resides on the web server you could automate the transfer with server-side script or just make the file available for retrieval if the other company has an automated retrieval method.
There is much that I do not know about XMLHTTP but as far as I know it is for retrievig information not sending it.
You say you need to post it to another company but then you say that company retrieves it which sounds conflicting.
It sounds to me like you are trying to place a document in a location that the other company can retrieve with XMLHttpRequest and you want to automate the placement of that document for them. Is this correct?
Where is the file originating from? What do you need to do on your end before the other company retrieves the file?
Either you need to place the file on your own web server so the other company can retrieve it or you need to place the file on the other company's server. The methods used could be very different depending on which way it has to go.
As for using Javascript without a browser, you can use a .HTA file that executes with client-side permissions. It uses the same engine as Internet Explorer but without all the menu extras and allows you to design the app with HTML, Javascript and VBScript. I suspect that what you are really asking for is a way to execute code automatically without someone having to open a browser window, go to the page and do something manually. You should be able to do this with a .HTA file but you could also do it with a .VBS file using VBA/VBScript.
As others have said, your question does not make sense to us and I believe it is a misunderstanding of what the technologies you are trying to use are capable of. Give us more detail about the steps you need to perform and we can make suggestions about the best methods to accomplish them.
At my age I still learn something new every day, but I forget two others.