[libvirt] [glib 4/5] gconfig,tests: Separate XML loading function