I'd suggest a switch to XML::LibXML.
It can accept an XML document in chunks, the way you need it. You get a DOM and SAX parser in one package and can mix access to DOM trees with XPath expressions. The actual XML parsing and document tree storage is all done on the C side, so it's much faster and consumes astonishingly little memory compared with XML::Parser-based modules.
It doesn't get any better than that. I'd been a fan of XML::Twig until I discovered this one. Don't leave home without it.
Makeshifts last the longest.
In reply to Re: How to parse XML coming from a socket?
by Aristotle
in thread How to parse XML coming from a socket?
by vadim_t
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |