]> xenbits.xensource.com Git - libvirt.git/commit
virsh: add support for domain XML validation
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 8 Jan 2015 15:26:50 +0000 (15:26 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 16 Jan 2015 11:07:59 +0000 (11:07 +0000)
commitd7565bd8aab018302307a994e7753766cc72c085
tree18ae15e929dfbd31c41ff8dd4d747c7587e4d921
parent78f911d7d043aa1980c1bf573d8cb32c9b4e06e5
virsh: add support for domain XML validation

The 'virsh edit' command gets XML validation enabled by default,
with a --skip-validate option to disable it. The 'virsh define'
and 'virsh create' commands get a --validate option to enable
it, to avoid regressions for existing scripts.

The quality of error reporting from libxml2 varies depending
on the type of XML error made. Sometimes it is quite clear
and useful, other times it is obscure & inaccurate. At least
the user will see an error now, rather than having their
XML modification silently disappear.
tools/virsh-domain.c