print the content of a element in a xml file using libxml2 parser.

Discussion in 'XML' started by sharan, May 2, 2008.

  1. sharan

    sharan Guest

    how we can print the content of the element in a XML file using
    libxml2 as i want to use it with "xpath"
    example:
    this is my xml file
    <record>
    <firstname>myfile</firstname>
    <lastname>yourfile</lastname>
    </record>
    know i want to print the content as "myfile" when
    i give element firstname
    as i m using libxml2 parser.
    and i trying 'xpath1.c' given in www.xmlsoft.org code examples.
    how can i do this
    i m doing xpath2.c correctly.
    thank u, in advance
    hari
     
    sharan, May 2, 2008
    #1
    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.
Similar Threads
  1. icoba
    Replies:
    0
    Views:
    638
    icoba
    Feb 7, 2006
  2. Replies:
    1
    Views:
    471
    Stefan Behnel
    Jan 6, 2007
  3. Sanjeev
    Replies:
    4
    Views:
    1,453
    Stanimir Stamenkov
    May 4, 2008
  4. sharan
    Replies:
    0
    Views:
    372
    sharan
    May 2, 2008
  5. Erik Wasser
    Replies:
    5
    Views:
    468
    Peter J. Holzer
    Mar 5, 2006
Loading...

Share This Page