http://www.perlmonks.org?node_id=1059350


in reply to Re^4: Bug in XML::Parser
in thread Bug in XML::Parser

If you happen to be passing one line at a time to the parser, and your input xml file happens to contain a close tag all by itself on one line (or a portion of a complicated open tag that has been broken up into multiple lines), I expect the parser would fail at that point. (At least, xmllint wouldn't accept such a file.)

(Update: actually, if the data contains just a complete open tag on one line, and you pass that to an xml parser, that should fail as well.)