1 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
3 This is a RELAX NG schema for the output of 'virt-inspector - -xml'.
5 To validate an existing document against this schema, you can
6 use xmllint, like this:
8 virt-inspector - -xml Foo > output.xml
9 xmllint - -noout - -relaxng virt-inspector.rng output.xml
11 (Note that because of limitations of XML, I have had to put spaces
12 between double dashes in the above code. Those spaces should not
13 be there in what you type on the command line).
15 Written by Richard W.M. Jones, with a little help from Daniel
18 This file can be freely copied and modified without restrictions.
21 <element name="operatingsystems">
23 <element name="operatingsystem">
26 <!-- required fields for an operating system -->
30 <value>windows</value>
33 <element name="arch"><text/></element>
34 <element name="root"><text/></element>
36 <!-- optional fields for an operating system -->
37 <optional><element name="distro"><text/></element></optional>
38 <optional><element name="product_name"><text/></element></optional>
39 <optional><element name="major_version"><text/></element></optional>
40 <optional><element name="minor_version"><text/></element></optional>
41 <optional><element name="package_format"><text/></element></optional>
42 <optional><element name="package_management"><text/></element></optional>
44 <ref name="mountpoints"/>
45 <ref name="filesystems"/>
46 <optional><ref name="applications"/></optional>
47 <optional><ref name="modprobealiases"/></optional>
48 <optional><ref name="initrds"/></optional>
49 <optional><ref name="kernels"/></optional>
50 <optional><ref name="boot"/></optional>
58 <!-- how filesystems are mounted on mount points -->
59 <define name="mountpoints">
60 <element name="mountpoints">
62 <element name="mountpoint">
63 <attribute name="dev"><text/></attribute>
70 <!-- filesystems detected -->
71 <define name="filesystems">
72 <element name="filesystems">
74 <element name="filesystem">
75 <attribute name="dev"><text/></attribute>
77 <element name="type"><text/></element>
78 <optional><element name="content"><text/></element></optional>
79 <optional><element name="label"><text/></element></optional>
80 <optional><element name="uuid"><text/></element></optional>
81 <optional><element name="spec"><text/></element></optional>
88 <!-- applications installed -->
89 <define name="applications">
90 <element name="applications">
92 <element name="application">
93 <element name="name"><text/></element>
94 <optional><element name="epoch"><text/></element></optional>
95 <element name="version"><text/></element>
96 <element name="release"><text/></element>
97 <element name="arch"><text/></element>
103 <!-- contents of /etc/modprobe* -->
104 <define name="modprobealiases">
105 <element name="modprobealiases">
107 <element name="alias">
108 <attribute name="device"><text/></attribute>
110 <element name="modulename"><text/></element>
111 <optional><element name="augeas"><text/></element></optional>
112 <element name="file"><text/></element>
119 <!-- initrd images found -->
120 <define name="initrds">
121 <element name="initrds">
123 <element name="initrd">
124 <attribute name="version"><text/></attribute>
126 <element name="module"><text/></element>
133 <!-- boot configurations -->
135 <element name="boot">
137 <element name="config">
139 <attribute name="default"><value>1</value></attribute>
142 <element name="title"><text/></element>
143 <element name="kernel"><text/></element>
144 <element name="cmdline"><text/></element>
152 <define name="kernels">
153 <element name="kernels">
155 <element name="kernel">
156 <attribute name="version"><text/></attribute>
157 <attribute name="arch"><text/></attribute>
159 <element name="modules">
161 <element name="module"><text/></element>
164 <optional><element name="path"><text/></element></optional>
165 <optional><element name="package"><text/></element></optional>