aboutsummaryrefslogtreecommitdiff
blob: bf17aadc57b3ab33f0f811b1d69b08d53a1cad3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!-- A Relax NG schema for the libvirt volume encryption XML format -->
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
    datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">

  <define name='encryption'>
    <element name='encryption'>
      <attribute name='format'>
        <choice>
          <value>default</value>
          <value>qcow</value>
        </choice>
      </attribute>
      <zeroOrMore>
        <ref name='secret'/>
      </zeroOrMore>
    </element>
  </define>

  <define name='secret'>
    <element name='secret'>
      <attribute name='type'>
        <choice>
          <value>passphrase</value>
        </choice>
      </attribute>
      <attribute name='uuid'>
          <ref name="UUID"/>
      </attribute>
    </element>
  </define>

</grammar>