[xml] Context Node



Hello,

Does anyone know how to change the Xpath context node?  I have tried setting the xmlXpathContextPtr's current node to the desired node.  For example I defined xmllXpathContextPtr ctx and then ctx->node = mynode.  But if I use the xmlDocSetRootElement(doc,ctx-node) it sets the new root and thus I can accomplish querying a subtree.  I would like not to change the root node of the document because I am using the doc over and over again.  The file I am using is the gjobs.xml.  In this file I would like to set the xmlXpathContext structure node  member to the gjob:Contact node.

Thanks,



Do You Yahoo!?
Yahoo! Health - Feel better, live better

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