* xmlXPathRoot: * @ctxt: the XPath Parser context * * Initialize the context to the root of the document */
| 7399 | * Initialize the context to the root of the document |
| 7400 | */ |
| 7401 | void |
| 7402 | xmlXPathRoot(xmlXPathParserContextPtr ctxt) { |
| 7403 | if ((ctxt == NULL) || (ctxt->context == NULL)) |
| 7404 | return; |
| 7405 | valuePush(ctxt, xmlXPathCacheNewNodeSet(ctxt, |
| 7406 | (xmlNodePtr) ctxt->context->doc)); |
| 7407 | } |
| 7408 | |
| 7409 | /************************************************************************ |
| 7410 | * * |
no test coverage detected