![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Generate XML from XMLDocument [Thread Next] Re: Generate XML from XMLDocumentTo: 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). | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
