1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

- tree.c: trying to fix #53574, not completely complete,

I would like xmllint --copy --debug test/ent1 and
  xmllint --debug test/ent1 to show the same result.
- xpath.c: fix a bug when trying to sort namespace nodes
Daniel
This commit is contained in:
Daniel Veillard
2001-04-25 12:59:04 +00:00
parent 5146f20c6c
commit b33c201978
3 changed files with 44 additions and 8 deletions

View File

@ -1098,6 +1098,9 @@ xmlXPathCmpNodes(xmlNodePtr node1, xmlNodePtr node2) {
*/
if (node1 == node2)
return(0);
if ((node1->type == XML_NAMESPACE_DECL) ||
(node2->type == XML_NAMESPACE_DECL))
return(1);
if (node1 == node2->prev)
return(1);
if (node1 == node2->next)