I don't want to use jQuery for the following:
If I had the following XML
<parent>
<a >some text
<b propA="foo">some more text
</b>
and more text still
</a>
</parent>
and wanted to call something like
//pseudo... I pass in node 1 because node 0 is a useless empty text node...
getFlatXMLAsString(parent.childNodes[1])
and receive a string that looked like "<a>some text\n<b propA="foo">some more text\n\n</b>and more text still</a>"
Notice how it just converts the XML to a flat string, but includes the node's own opening and closing tags (and if that had attributes, it would have those in there as well).
Obviously I can do this manually but was hoping there's some built in mechanism that would prevent me re-inventing the wheel.