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



Thanks, Stefan.

Is there a way to do it in parser, tree, or reader API? I don't want to support more functionalities.

Thanks,
Walter


From: Stefan Seefeld <seefeld sympatico ca>
To: xml gnome org
Subject: Re: [xml] search for a match in the tree and return a node pointer
Date: Tue, 13 Apr 2004 20:29:57 -0400


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

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml

_________________________________________________________________
Get rid of annoying pop-up ads with the new MSN Toolbar ? FREE! http://toolbar.msn.com/go/onm00200414ave/direct/01/




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