I have a XML file like:
<description>
<text>blahblah</text>
<code>code</code>
<text>blah</text>
</description>
I’ve navigated to the node description, and I want to read the full content including the <text> and so on.
I’ve used the getText(), but it returned empty string.
I’ve used the getStringValue(), but it filtered all <text>.
I’ve used the asXML(), the result is close, but the result contains <description> which I don’t want.
Is there a method to get the XML content of a element?
Something like this:
Note that if the element has text content itself, this won’t return the text content, only the child nodes.