I got following (in reality huge) XML to process:
<root>
<item attr="hello world">
<subitem></subitem>
<subitem></subitem>
<subitem></subitem>
<subitem></subitem>
</item>
<item attr="hello world">
<subitem></subitem>
<subitem></subitem>
<subitem></subitem>
<subitem></subitem>
</item>
.
.
.
</root>
With StaxMate this is pretty easy. But how on earth do I tell StaxMate to "record" e.g. the plain XML for each item (see XML above). So that after processing the an item I have done my processing on it + I have the String
<item attr="hello world">
<subitem></subitem>
<subitem></subitem>
<subitem></subitem>
<subitem></subitem>
</item>
somewhere.
Thank you very very much, Fabian