Using the expat parser (http://expat.sourceforge.net/) i have to parse the following xml file and pr

S

sharan

Using the expat parser (http://expat.sourceforge.net/) i have to parse
the following xml file and print it on the screen in tabular
format. Want a c program on that in Linux environment.
xml file is:
<?xml version="1.0"?>
<users>
<user id="1">
<name> Hari Oum </name>
<age> 24 </age>
<department> Product Development </department>
</user>
<user id="2">
<name> Sandeep </name>
<age> 23 </age>
<department> VoiceXML Applications </department>
</user>
<user id="3">
<name> Jeganathan </name>
<age> 24 </age>
<department> Java Applications </department>
</user>
</users>

Output should look like:
USER ID NAME
AGE DEPT
1 Hari Oum
24 Product Development
2 Sandeep
23 VoiceXML Applications
3 Jeganathan
24 Java Applications
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top