On Tue, Oct 21, 2008 at 5:44 AM, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > Emmanual, I am afraid this only holds when there is at least one newline > between two xml messages. > Suppose the incoming xml looks like this: > > <root><msg>this is message 1</msg></root><root>CRLF > <msg>this is message 2</msg></root> > > I agree that it's unlikely but who knows ... > > Maarten
That's not well-formed XML, it should have only one root node, so you can search for it and it's closing, whichever line is it into
