mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
fix a problem with string() on a document node. Daniel
* xpath.c: fix a problem with string() on a document node. Daniel
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
Thu Apr 18 16:40:42 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* Makefile.am xmlschemas.c: more Schemas work
|
* Makefile.am xmlschemas.c: more Schemas work
|
||||||
|
2
xpath.c
2
xpath.c
@ -3216,6 +3216,8 @@ xmlXPathCastNumberToString (double val) {
|
|||||||
*/
|
*/
|
||||||
xmlChar *
|
xmlChar *
|
||||||
xmlXPathCastNodeToString (xmlNodePtr node) {
|
xmlXPathCastNodeToString (xmlNodePtr node) {
|
||||||
|
if ((node != NULL) && (node->type == XML_DOCUMENT_NODE))
|
||||||
|
node = xmlDocGetRootElement((xmlDocPtr) node);
|
||||||
return(xmlNodeGetContent(node));
|
return(xmlNodeGetContent(node));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user