Re: [xml] search for a match in the tree and return a node pointer



Zichao Mao wrote:
> Hi,
>
> I want to search for a match in the tree and return a node pointer.  I
> don't know what functions to use in libxml2. Here's my code:

The xml way to do that is using an 'xpath' expression (http://www.w3c.org/TR/xpath).

An example of how to use xpath with libxml2 is http://xmlsoft.org/examples/index.html#XPath

Regards,
                Stefan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]