reset the libxml error handling when parse can't parse xml