JQuery: how to get the xml system yourself?

Suppose xmlNode is an XML DOM node, how do you get its XML system yourself?

For IE, this is xmlNode.xml;

For Netscape, this is new XMLSerializer().serializeToString(xmlNode) .

Is there a built-in method in jQuery that I can use?

+2
source share
3 answers

I don’t know what the built-in JQuery function is, but there is a cross-browser JavaScript method for XML from an XML DOM node. Take a look at the xml2Str function in the answer to this question: Serialize the DOM node into XML text using JavaScript .

+2
source
 $(xmlNode).html(); 
0
source
 var xmlContent = $(xmlNode) 

For a longer validation check, an IBM developer is working on an AJAX article with jQuery

0
source

All Articles