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



I found this structure, _xmlParserNodeInfo, can this be used?

Structure xmlParserNodeInfostruct _xmlParserNodeInfo {
   const struct _xmlNode *      node    : Position & line # that text that create
   unsigned long        begin_pos
   unsigned long        begin_line
   unsigned long        end_pos
   unsigned long        end_line
}

Thank you.

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

_________________________________________________________________
Tax headache? MSN Money provides relief with tax tips, tools, IRS forms and more! http://moneycentral.msn.com/tax/workshop/welcome.asp




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