From: Christophe Le Gal (Christophe.Le-Gal@inrialpes.fr)
Date: Tue Mar 07 2000 - 12:43:22 EST
Hi,
I don't understand the logic of these two functions :
The doc says :
xmlAddNextSibling(cur, elem)
add elem as the next sibling of cur
but after the call of xmlAddNextSibling(cur, elem)
cur->next = stgelse
cur->prev = elem
elem->next = cur
The effects of xmlAddPrevSibling are, of course, the opposite effects :
sample of the source code of xmlAddPrevSibling(cur, elem) :
elem->prev = cur ;
cur->next = elem ;
If I just swap these 2 functions in my code, everything work OK.
Is that a bug or a misunderstanding ?
-- Christophe Le Gal Equipes PRIMA/Laboratoire Gravir-Imag; BIP/INRIA Rhone-Alpes mailto:Christophe.Le-Gal@inrialpes.fr Tel : (+33) 4 76 61 52 13 / Fax : (+33) 4 76 61 52 52 ---- Message from the list xml@xmlsoft.org Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:08 EDT