Hello,
Code:var xmlstring = '<?xml version="1.0"?>\ <root>\ <data>\ <row>\ <cell>Captain</cell>\ <cell>Bryophyllum</cell>\ <cell>Zucchini</cell>\ </row>\ </data>\ </root>'; var xmlobject = (new DOMParser()).parseFromString(xmlstring, "text/xml");this part of code ust works for mozilla firefox. And it is exactly what i need.Code:var string = (new XMLSerializer()).serializeToString(xmlobject); alert(string);
Is there any solution for IE??
I have xml like
and i need to write the whole content of item into an part of my websiteCode:<item id='content' method='clear'> <span> <h1>Hallo Titel</h1> <p>Hallo Content</p> </span> </item>
(tagged with an id like "content")
Google is not my friend as it doesnt want to help me :/


Reply With Quote
Bookmarks