Friday, July 31, 2009

A c program which printing the tag value of a xml file using expat parser?

like for a example xml program


%26lt;?xml version="1.0" encoding="ISO-8859-1"?%26gt;


%26lt;note%26gt;


%26lt;to%26gt;Tove%26lt;/to%26gt;


%26lt;from%26gt;Jani%26lt;/from%26gt;


%26lt;heading%26gt;Reminder%26lt;/heading%26gt;


%26lt;body%26gt;Don't forget me this weekend!%26lt;/body%26gt;


%26lt;/note%26gt;





out put should be :


Tove


Jani


Reminder


Don't forget me this weekend!


i want the c program for that in linux environments

A c program which printing the tag value of a xml file using expat parser?
If you've got the expat parser, why not go look at the example programs at the site?





For example, the line.c sample program prints the tags, text, and other goodies. Just modify it to print only the text. (It's a really short program.) Link included below...


No comments:

Post a Comment