Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Generate XML from XMLDocument

From: Paul R <completely.fictitious@-----.--->
To: NULL
Date: 2/3/2005 11:19:00 AM
brad@k... wrote:
> I have an XMLDocument that my web page downloads and manipulates as a
> response to user input. I have lots of JavaScript that acts as a
> controller between my view (html) and my model (xml). That works fine.
> 
> Once the user's done editing, I want to send the modified XMLDocument
> back up to my server (as XML). The problem is, I can't find a way to
> use JavaScript to generate XML from an XMLDocument. Is there some
> obvious API that I'm missing? I assume there's more than one way to do
> it (one way for IE and one way for Mozilla, who knows how many others),
> anybody want to share?
> 

You could send the XML file direct using an XMLHttpRequest object 
(Mozilla and IE, although they may differ a little).

Alternatively, write the XML text to a hidden (HTML) field using the 
[DOMDocument].xml property (IE) or an XMLSerializer object (Mozilla).


transparent
Print
Mail
Digg
delicious
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