Re: [xml] xmlPreviousElementSibling mistake



On Wed, Feb 03, 2010 at 03:45:58PM +0100, François Delyon wrote:
In tree.c 3530 (libxml2 2.7.6), the function
xmlPreviousElementSibling ends with:

    while (node != NULL) {
        if (node->type == XML_ELEMENT_NODE)
            return(node);
        node = node->next;
    }

I suggest
      node = node->prev;

Ah, right, good catch ! fix pushed,

 thanks !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]