From ee21bc1f8071bb35409e9f15fb8309348c9a5912 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Thu, 1 Oct 2009 16:58:38 +0100 Subject: [PATCH] inspector: Add RELAX NG schema for virt-inspector --xml output. --- inspector/virt-inspector | 7 +- inspector/virt-inspector.rng | 168 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 171 insertions(+), 4 deletions(-) create mode 100644 inspector/virt-inspector.rng 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 1.8.3.1