Reading full elements
jameskleeh opened this issue · 0 comments
jameskleeh commented
This is a question so I apologize in advance if this should be asked somewhere else.
I'm trying to use the non blocking XML parsing to support a stream of objects with a format like
<products>
<product>...</product>
<product>...</product>
</products>
The idea being that as soon as a complete product is received, I can pass it downstream to be converted into a POJO (Using Jackson). Using the async API, how can I get access to an object representing the entire product element which may include attributes and sub elements?