Commit 23b1f37b authored by Daniel Veillard's avatar Daniel Veillard
Browse files

fix a problem with string() on a document node. Daniel

* xpath.c: fix a problem with string() on a document node.
Daniel
parent decd64d6
Thu Apr 18 17:49:24 CEST 2002 Daniel Veillard <daniel@veillard.com>
* xpath.c: fix a problem with string() on a document node.
Thu Apr 18 16:40:42 CEST 2002 Daniel Veillard <daniel@veillard.com>
* Makefile.am xmlschemas.c: more Schemas work
......
......@@ -3216,6 +3216,8 @@ xmlXPathCastNumberToString (double val) {
*/
xmlChar *
xmlXPathCastNodeToString (xmlNodePtr node) {
if ((node != NULL) && (node->type == XML_DOCUMENT_NODE))
node = xmlDocGetRootElement((xmlDocPtr) node);
return(xmlNodeGetContent(node));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment