Convenience helpers for working with libvirt XML