Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Problem with MSXML save to local file. [Thread Next] Re: Problem with MSXML save to local file.To: NULL Date: 9/2/2005 4:50:00 PM Daniel wrote: > xmlDoc.save(xmlDoc.XMLDocument); What is xmlDoc, where you set/initialize that variable? The save method of an MSXML XML DOM document is documented here: <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/0749c4f1-61fe-4d28-9d29-cd93a76f5475.asp? So the argument can be a string with a file name if you want save to a local file but take note that with script inside of IE that is not possible: "This mode is not intended for use from a secure client, such as Microsoft Internet Explorer." Saving to another document object is possible but the above code if it makes any sense looks more like you have an XML data island with <xml id="xmlDoc"> and now try to save the XML document back to itself. Note sure why you try that but that will certainly not save anything to the file system. If you want to use MSXML to load XML from the local file system and save it back to the local file system then IE is not the right host for your script, instead use a HTA (HTML application) or a Windows Script Host script. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
