/* Returns the last element in the list, or NULL  */
xmlLinkPtr xmlListEnd(xmlListPtr l)
/* Returns the last element in the list, or NULL  */
xmlLinkPtr xmlListEnd(xmlListPtr l)
{
    if (l == NULL)
        return(NULL);
    return (l->sentinel->prev);
}