Getting complete xml text from a node - XML nodeValue
Hi everyone,
I'm trying to re-export a filtered set of XML data. For an input like this:
<object>
<header />
<thing1>
<value1>1</value1>
<value2>2</value2>
<thing1/>
</object>
I want to do:
val outxml = $('thing1',xmldoc).get(0).nodeValue;
and get output like:
<value1>1</value1><value2>2</value2>
However, this currently returns 'undefined'. Is there any easy way to do this, or do I need to actually parse the XML below thing1 and manually write my own XML sub-tree?
Jquery 1.4, Firefox
--Nathaniel