I have to write a program where we get the xml file incrementally. i.e the file is constantly updated in the form of xml feed. Thus the first chunk will not be a well formed xml document. However i need to parse the feeds regularly and display the parsed result.

How can this be achieved.?


xml field can be following

First chunk is as follows: We can see it is not well formed

The next chunk will be


Please help!! I would be greatful if you could provide me with sample code or some links which i can follow.