[libvirt] [PATCH 2/3] xml: add another convenience function