The Go package libvirt.org/go/libvirtxml provides annotated Go struct definitions for parsing (and formatting) XML documents used with libvirt APIs.
This package replaces the obsolete libvirt.org/libvirt-go-xml package in order to switch to using semver and Go modules. Aside from the changed import path and versioning scheme, the API is fully compatible with the original package.
For details of Go specific behaviour consult the Go package documentation.