An attemt to bring libxml2 to sanity