preparing libxml2-2.6.0 updated and regenerated the docs and API moved the
* configure.in NEWS doc/libxml2.xsa: preparing libxml2-2.6.0
* doc/*: updated and regenerated the docs and API
* SAX2.c error.c tree.c: moved the line number to their proper
field in elements now.
Daniel
diff --git a/tree.c b/tree.c
index 1c327e6..bca13e7 100644
--- a/tree.c
+++ b/tree.c
@@ -3748,7 +3748,7 @@
ret->content = xmlStrdup(node->content);
}else{
if (node->type == XML_ELEMENT_NODE)
- ret->content = (void*)(long) node->content;
+ ret->line = node->line;
}
if (parent != NULL) {
xmlNodePtr tmp;
@@ -4071,7 +4071,7 @@
if (!node)
return result;
if (node->type == XML_ELEMENT_NODE)
- result = (long) node->content;
+ result = (long) node->line;
else if ((node->prev != NULL) &&
((node->prev->type == XML_ELEMENT_NODE) ||
(node->prev->type == XML_TEXT_NODE)))