[xml] XPath context



Hi,

Would someone mind explaining to me what effect setting
the node member in a xmlXPathContext structure has on
an X Path evaluation.

for example,

ctxt = xmlXPathNewContextPtr(doc);
ctxt->node = xmlDocGetRootElement(doc);

result = xmlXPathEval( BAD_CAST"/book/chapter[1]/descendant::*", ctxt");


Thanks for any hints,
Carl

--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.






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