in reply to Re^4: Incremental XML parsing
in thread Incremental XML parsing

In the OP, I see only a requirement to parse large documents, in which case Twig (or XML::Rules) would likely be fine.

Replies are listed 'Best First'.
Re^6: Incremental XML parsing
by Anonymous Monk on Feb 04, 2012 at 21:16 UTC
    OP here. I do consider incremental parsing to include incremental feeding of data to the parser. That was why I mentioned XML::SAX::Expat::Incremental.
      I still don't see why "large document" == "need incremental parser". I can see why you would need a stream parser (e.g. *::SAX XML::Twig XML::Rules). Non-incremental stream parsers parse large documents just fine without parsing the entire document into memory.
        Asked and answered: "...but also to be able to consume the input document in pieces, such as feeding data as it arrives over the wire." If the data is too large for the filesystem, you might want to process it as it arrives.