/* Returns the value associated to @data or NULL in case of error  */
void* xmlListReverseSearch(xmlListPtr l, void *data)
/* Returns the value associated to @data or NULL in case of error  */
void* xmlListReverseSearch(xmlListPtr l, void *data)
{
    xmlLinkPtr lk;
    if (l == NULL)
        return(NULL);
    lk = xmlListLinkReverseSearch(l, data);
    if (lk)
        return (lk->data);
    return NULL;
}