diff options
Diffstat (limited to 'tree.c')
-rw-r--r-- | tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3484,7 +3484,8 @@ xmlGetNodePath(xmlNodePtr node) */ tmp = cur->prev; while (tmp != NULL) { - if (xmlStrEqual(cur->name, tmp->name)) + if ((tmp->type == XML_ELEMENT_NODE) && + (xmlStrEqual(cur->name, tmp->name))) occur++; tmp = tmp->prev; } |