Index: tree.c =================================================================== RCS file: /cvs/gnome/gnome-xml/tree.c,v retrieving revision 1.215 diff -c -r1.215 tree.c *** tree.c 5 Sep 2002 11:12:45 -0000 1.215 --- tree.c 17 Sep 2002 22:55:17 -0000 *************** *** 3484,3490 **** */ tmp = cur->prev; while (tmp != NULL) { ! if (xmlStrEqual(cur->name, tmp->name)) occur++; tmp = tmp->prev; } --- 3484,3491 ---- */ tmp = cur->prev; while (tmp != NULL) { ! if ((tmp->type == XML_ELEMENT_NODE) && ! (xmlStrEqual(cur->name, tmp->name))) occur++; tmp = tmp->prev; }