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

Discussion in 'XML' started by sharan, Oct 26, 2007.

  1. sharan

    sharan Guest

    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
    sharan, Oct 26, 2007
    #1
    1. Advertising

  2. sharan

    Pavel Lepin Guest

    sharan <> wrote in
    <>:
    > 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.


    Right. Hire yourself a programmer, or do your own homework.

    --
    It is rare to find learned men who are clean, do not stink,
    and have a sense of humour. -- Liselotte in a letter to
    Sophie, 30 Jul 1705
    Pavel Lepin, Oct 26, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page