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

前端 未结 7 1704
忘了有多久
忘了有多久 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 15:14

    This is a (April 2009) post from the Xerces J-Users mailing list, where the original poster is having the exact same issue. One potentially very good response by "Jeff" is given, but there is no follow up to the original poster's response:

    http://www.nabble.com/parsing-an-xml-document-chunk-by-chunk-td22945319.html

    It's potentially new enough to bump on the list, or at very least help with the search.

    Edit

    Found another useful link, mentioning a library called Woodstox and describing the state of Stream vs. NIO based parsers and some possible approaches to emulating a stream:

    http://markmail.org/message/ogqqcj7dt3lwkbov

提交回复
热议问题