[PATCH v2 1/2] util/virxml: use xmlCtxtGetLastError when applicable