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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sharan

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

    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>myfi le</firstname>
    <lastname>yourf ile</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
Working...