Hi Praveen, Instead of going with SAX parser you can use DOM parser. As DOM parser will load the root pointer in your buffer so that you can do retrive/update the xml file.
Instead of given sample code please refer this url for more info: http://xmlsoft.org/examples/index.html --Cheers Madhu --- On Tue, 13/1/09, praveens <[email protected]> wrote: From: praveens <[email protected]> Subject: [c-prog] How to parse staggered xml file using libxml/SAX To: [email protected] Date: Tuesday, 13 January, 2009, 11:20 AM 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.? Eg... xml field can be following First chunk is as follows: We can see it is not well formed <xml> <results> <result1> </result1? <result2> </result2> The next chunk will be <result3> </result3> <result4> </result4> </results> </xml> Please help!! I would be greatful if you could provide me with sample code or some links which i can follow. TIA -- View this message in context: http://www.nabble. com/How-to- parse-staggered- xml-file- using-libxml- SAX-tp21429559p2 1429559.html Sent from the C-prog mailing list archive at Nabble.com. Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ [Non-text portions of this message have been removed]
