To make a nice and readable test case i'd like to parse some hand written XML (copy-paste from xmpp.org), transform it to Stanza or XMLElement and proceed with actual tests. So i'd like to avoid stanza builders at all.
Is such thing possible with Non-blocking XML parser?
In order to obtain XMLElement solution is to use DefaultNonBlockingXMLReader and assign a stanza listener. The trick is to start "stream", so XML of stanza to test should be wrapped to something like ".....
The code: