Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Problem with MSXML save to local file.

From: Martin Honnen <mahotrash@-----.-->
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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent