Re: [xml] general help with using XPath with libxml2 (fwd)

On Tue, Nov 14, 2006 at 09:45:21AM -0500, Peter Wilkes wrote:

      thank you for the help.  i did learn a lot from your example.  i'm
not sure i am communicating what i want to do clearly though.

i guess what im trying to do is an XPath query from an XPath result.

an example would be like

XPathObjectPtr array1Ref =

XPathObjectPtr array2Ref = xmlXPathEvalExpression("MyStruct/data1",

i know that wont compile.  but i'm looking to do something similar. is
this possible?

  No, you need to allocate an XPath context and set the current node
from C. Examples have been provided in this list in the past you need
to change the pointer in the structure.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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