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. Advertisements

  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. Advertisements

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.
Similar Threads
  1. mike
    Replies:
    0
    Views:
    1,089
  2. alf
    Replies:
    0
    Views:
    377
  3. sharan
    Replies:
    5
    Views:
    2,955
    sidsverma
    Aug 26, 2011
  4. sharan
    Replies:
    4
    Views:
    1,451
    Pavel Lepin
    Nov 5, 2007
  5. Replies:
    2
    Views:
    1,112
    Joseph Kesselman
    Nov 5, 2007
  6. Tobias Blass

    expat XML parser manpage

    Tobias Blass, Dec 11, 2010, in forum: XML
    Replies:
    2
    Views:
    1,441
    Tobias Blass
    Dec 11, 2010
  7. Dwight Army of Champions

    How do you install expat and XML::Parser on Mac OS x?

    Dwight Army of Champions, Nov 12, 2011, in forum: XML
    Replies:
    0
    Views:
    3,252
    Dwight Army of Champions
    Nov 12, 2011
  8. Erik Wasser
    Replies:
    5
    Views:
    864
    Peter J. Holzer
    Mar 5, 2006
Loading...