in reply to xml processing line-by-line
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...)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: xml processing line-by-line
by jczeus (Monk) on Jul 24, 2007 at 14:52 UTC |