/* Returns 1 if the list is empty, 0 if not empty and -1 in case of error  */
int xmlListEmpty(xmlListPtr l)
/* Returns 1 if the list is empty, 0 if not empty and -1 in case of error  */
int xmlListEmpty(xmlListPtr l)
{
    if (l == NULL)
        return(-1);
    return (l->sentinel->next == l->sentinel);
}