[libvirt] DTD or Schema for VM definition file

Eric Blake eblake at redhat.com
Thu May 30 20:41:22 UTC 2013


On 05/30/2013 01:48 PM, Jorge Fábregas wrote:
> Hi there,
> 
> Is there any DTD or Schema for the VM's XML file?  I found an
> interesting doc called "Domain XML Format", on the libvirt website,
> which explains all the elements but didn't find any reference to a
> Schema or DTD.

In the libvirt tarball is a set of files that provide a RelaxNG grammar
describing domain XML; you can run virt-xml-validate(1) to access that
grammar programmatically, or look at where the grammar gets installed
(on Fedora, it is in /usr/share/libvirt/schemas/*.rng).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130530/b53150f7/attachment-0001.sig>


More information about the libvir-list mailing list