mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
- testXPath.c xpath.c: fixing the XPath union expressions problem
reported by Martin Vidner <martin@artax.karlin.mff.cuni.cz> Daniel
This commit is contained in:
@ -98,6 +98,7 @@ void testXPath(const char *str) {
|
||||
} else {
|
||||
#endif
|
||||
ctxt = xmlXPathNewContext(document);
|
||||
ctxt->node = xmlDocGetRootElement(document);
|
||||
if (expr)
|
||||
res = xmlXPathEvalExpression(BAD_CAST str, ctxt);
|
||||
else
|
||||
|
Reference in New Issue
Block a user