Suppose there is a simple xml file:

<book> <title>Introduction to Algorithms</title> <edition>Second</edition> <authors> <author>Thomas H. Cormen</author> <author>Clifford Stein</author> </authors> </book> 

How do I get the value of the <edition> field and, say, the second `<author> using" C "and libxml?

    1 answer 1

    There are many examples of using their product on the libxml2 developer site.

    • I can not find examples there, there are some function headers. Can you give an explicit reference to the example, how is the field pulled out? - gympi
    • The question is removed, thanks, I was a little stupid. - gympi