Re: [xml] concept of current node in xpath



On Wed, Oct 01, 2008 at 03:38:04PM -0700, Prashant R wrote:
How do I ... ?

if I want xpath to start processing from a particular node in the DOM tree
instead of from the top.

xmlXPathNewContext

takes the pointer to xmlDocPtr .

What is the API to specify that the xpath processing should occur from a
particular subtree  ?

  set ctxt->node

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



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