JavaScript & XML : Can't save files
by Andrej Kostresevic <temporalassassin(at)yahoo.com>
|
Date: |
Thu, 18 Jan 2001 08:26:09 -0800 (PST) |
To: |
hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
I am trying to manipulate an XML document from within a page. I change the
XML object succesfully, but I cant save the changes to the actual text
file. If anyone has any experience with something similar, I would
appreciate any input.
I have tried these, and neither of them seem to work:
JavaScript: FSO
var fso = new ActiveXObject("Scripting.FileSystemObject");
var File = fso.CreateTextFile("E:\somePath\UrlData.xml" , true);
File.write(XmlUrlData.xml);
/***********XMLDOM*****************/
objXMLdoc.loadXML(XmlUrlData.xml);//already created this object
objXMLdoc.save("UrlData.xml");
//or
XmlUrlData.save(XmlUrlData.XMLDocument);//object does exist
//or
XmlUrlData.save(objXMLdoc.XMLDocument);
//or
XmlUrlData.save("e:\inetpub\wwwroot\Test\Urls\UrlData.xml");
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA