Is there a Push-based/Non-blocking XML Parser for Java?

前端 未结 7 1712
忘了有多久
忘了有多久 2020-12-24 14:24

I\'m looking for an XML parser that instead of parsing from an InputStream or InputSource will instead allow blocks of text to be pushed into the parser. E.g. I would like t

7条回答
  •  粉色の甜心
    2020-12-24 14:56

    Surprisingly no one mentioned one Java XML parser that does implement non-blocking ("async") parsing: Aalto. Part of the reason may be lack of documentation (and its low level of activity). Aalto implements basic Stax API, but also minor extensions to allow pushing input (this part has not been finalized; functionality exists but API is not finalized). For more information you could check out related discussion group.

提交回复
热议问题