How To Parse Multiple Xml Documents From A Single Stream?
I've got a socket from which I'm reading XML data. However, this socket will spit out multiple different XML documents, so I can't simply parse all the output I receive. Is there
Solution 1:
If you get separate documents, you'll need something to divide them; and if you have that, you can simply split the stream before you parse the individual documents.
Another possibility would be to wrap that into another document, so each XML document is actually a subdocument of a parent's you create (and wrap around) just for that purpose.
Post a Comment for "How To Parse Multiple Xml Documents From A Single Stream?"