On Tue, Nov 14, 2006 at 09:45:21AM -0500, Peter Wilkes wrote:
> Sri,
> 
>       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 =
> xmlXPathEvalExpression("//data/array1",xpathctx);
> 
> XPathObjectPtr array2Ref = xmlXPathEvalExpression("MyStruct/data1",
> array1Ref->nodesetval->nodeTab[0]);
> 
> 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.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to