Suppose you have an XML document like so:
<root>
That was a <b boldness="very">very bold</b> move.
</root>
Suppose the XmlPullParser
is on the opening tag for root. Is there a handy method to read all text within root
to a String
, sort of like innerHtml
in DOM?
Or do I have to write a utility method myself that recreates the parsed tag? This of course seems like a waste of time to me.
String myDesiredString = "That was a <b boldness=\"very\">very bold</b> move."