[PATCH v2 1/3] virxml: Introduce and use virXMLFormatMetadata()