From: Richard Jones Date: Thu, 1 Oct 2009 15:58:38 +0000 (+0100) Subject: inspector: Add RELAX NG schema for virt-inspector --xml output. X-Git-Tag: 1.0.73~8 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=ee21bc1f8071bb35409e9f15fb8309348c9a5912;p=libguestfs.git inspector: Add RELAX NG schema for virt-inspector --xml output. --- diff --git a/inspector/virt-inspector b/inspector/virt-inspector index dc8847f..13673af 100755 --- a/inspector/virt-inspector +++ b/inspector/virt-inspector @@ -247,10 +247,9 @@ Windows), the distribution and version. The diagram above shows what we return for each OS. With the I<--xml> option the output is mapped into an XML document. -Unfortunately there is no clear schema for this document -(contributions welcome) but you can get an idea of the format by -looking at other documents and as a last resort the source for this -program. +There is a RELAX-NG schema for this XML in the file +I which normally ships with virt-inspector, or can +be found in the source. With the I<--fish> or I<--ro-fish> option the mount points are mapped to L command line parameters, so that you can go in diff --git a/inspector/virt-inspector.rng b/inspector/virt-inspector.rng new file mode 100644 index 0000000..1da58fc --- /dev/null +++ b/inspector/virt-inspector.rng @@ -0,0 +1,168 @@ + + + + + + + + + + + + linux + windows + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +