1
0
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:
Daniel Veillard
2001-01-03 15:24:58 +00:00
parent 4a6845df29
commit 081089848c
3 changed files with 14 additions and 3 deletions

View File

@ -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