On Wed, Mar 11, 2009 at 12:48:54PM +0100, Kris Breuker wrote: > Hello, > > The functions xmlAddNextSibling and xmlAddPrevSibling have a check which > checks if the element to be added is the same as the reference element. > xmlAddSibling however does not have such a check, resulting in the loss > of the element (the call to xmlUnlinkNode(elem) will unlink cur). I > think the equality check should be added to addSibling as well, like in > the attached patch.
yes that makes perfect sense ! Applied and commited, thanks a lot ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ [email protected] | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
