[PATCH 4/5] virXMLParseHelper: Rework error reporting