1 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
3 This is a RELAX NG schema for the output of 'virt-inspector'.
5 To validate an existing document against this schema, you can
6 use xmllint, like this:
8 virt-inspector -d 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 <optional><element name="root"><text/></element></optional>
30 <value>windows</value>
33 <optional><element name="arch"><text/></element></optional>
34 <optional><element name="distro"><text/></element></optional>
35 <optional><element name="product_name"><text/></element></optional>
36 <optional><element name="product_variant"><text/></element></optional>
37 <element name="major_version"><text/></element>
38 <element name="minor_version"><text/></element>
39 <optional><element name="windows_systemroot"><text/></element></optional>
40 <optional><element name="windows_current_control_set"><text/></element></optional>
41 <optional><element name="package_format"><text/></element></optional>
42 <optional><element name="package_management"><text/></element></optional>
43 <optional><element name="hostname"><text/></element></optional>
44 <optional><element name="format"><text/></element></optional>
45 <optional><element name="live"><empty/></element></optional>
46 <optional><element name="netinst"><empty/></element></optional>
47 <optional><element name="multipart"><empty/></element></optional>
49 <ref name="mountpoints"/>
50 <ref name="filesystems"/>
51 <optional><ref name="drive_mappings"/></optional>
52 <optional><ref name="applications"/></optional>
60 <!-- how filesystems are mounted on mount points -->
61 <define name="mountpoints">
62 <element name="mountpoints">
64 <element name="mountpoint">
65 <attribute name="dev"><text/></attribute>
72 <!-- filesystems detected -->
73 <define name="filesystems">
74 <element name="filesystems">
76 <element name="filesystem">
77 <attribute name="dev"><text/></attribute>
79 <optional><element name="type"><text/></element></optional>
80 <optional><element name="label"><text/></element></optional>
81 <optional><element name="uuid"><text/></element></optional>
88 <!-- drive mappings (for Windows) -->
89 <define name="drive_mappings">
90 <element name="drive_mappings">
92 <element name="drive_mapping">
93 <attribute name="name"><text/></attribute>
100 <!-- applications installed -->
101 <define name="applications">
102 <element name="applications">
104 <element name="application">
105 <element name="name"><text/></element>
106 <optional><element name="display_name"><text/></element></optional>
107 <optional><element name="epoch"><text/></element></optional>
108 <optional><element name="version"><text/></element></optional>
109 <optional><element name="release"><text/></element></optional>
110 <optional><element name="install_path"><text/></element></optional>
111 <optional><element name="publisher"><text/></element></optional>
112 <optional><element name="url"><text/></element></optional>
113 <optional><element name="source_package"><text/></element></optional>
114 <optional><element name="summary"><text/></element></optional>
115 <optional><element name="description"><text/></element></optional>