Because it explicitly says that the non-blocking parser should not be used with XML::Twig and is untested. Yes, the author chose to include the only mention of the non-blocking parser in the documentation for an unrelated option, but the docs in general are quite confusing.
As it stands, XML::LibXML::Reader has similar functionality to XML::Twig, but is much, much faster.
But neither appear to be able to parse XML incrementally. Note this means not only to not produce the entire DOM at once, but also to be able to consume the input document in pieces, such as feeding data as it arrives over the wire. | [reply] |
In the OP, I see only a requirement to parse large documents, in which case Twig (or XML::Rules) would likely be fine.
| [reply] |
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.
| [reply] |