Depending on the speed of the parser and how much speed matters you could parse it in an eval and catch the exception (or check for errors however XML::LibXML handles them).
You also have other options, could the sender append an EOF or other component to the message to indicate the xml is done? XML Isn't line oriented and can be rather complex, you want to avoid being in the business of parsing it if at all possible (unless you're writing a parser...)
In reply to Re: xml processing line-by-line
by Trizor
in thread xml processing line-by-line
by jczeus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |