[libvirt] [PATCH 2/3] Use common XML parsing functions