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 using C language. i am getting ouput serially but not in
tabular
xml file is:
<?xml version="1.0"?>
<users>
<user id="1">
<nameHari Oum </name>
<age24 </age>
<departmentProduct Development </department>
</user>
<user id="2">
<nameSandeep </name>
<age23 </age>
<departmentVoiceXML Applications </department>
</user>
<user id="3">
<nameJeganathan </name>
<age24 </age>
<departmentJava Applications </department>
</user>
</users>
i am getting output like this :
Harioum
24
Prodoct development
:
:
but 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