I have a http connection that listen on status changes. It comes in an xml format. The problem is that the complete xml come in chunks. Some times it comes complete with start and end tag and sometimes it comes in two or three pieces. Can I somehow search for start tag eg wait until tag is received and then send a complete valid xml into the xml node.
an example
sometimes the xml is complete
like this
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
with XML.</description>
</book>
and sometimes it come like this
payload 1
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
payload 2
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
with XML.</description>
</book>
Any suggestion how to solve this? tried a lot of things but no success.
Best regard Niclas