> into an XML text.
It depends on the DOM implementation, with Mozilla's DOM implementation
you have XMLSerializer e.g.
var xmlMarkup = new XMLSerializer().serializeToString(domNode);
Opera and Safari support that too I think, Opera also supports the W3C
DOM Level 3 API for doing that I think.
With IE you use the MSXML DOM implementation, there nodes have a
property named xml so you can use
var xmlMarkup = domNode.xml;