File: format.html.in

package info (click to toggle)
libvirt 5.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 240,844 kB
  • sloc: ansic: 584,521; xml: 176,725; sh: 9,912; python: 4,731; perl: 4,343; makefile: 3,321; ml: 465
file content (47 lines) | stat: -rw-r--r-- 1,790 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <body>
    <h1>XML Format</h1>


    <p>
      Objects in the libvirt API are configured using XML documents to allow
      for ease of extension in future releases. Each XML document has an
      associated Relax-NG schema that can be used to validate documents
      prior to usage.
    </p>


    <ul>
      <li><a href="formatdomain.html">Domains</a></li>
      <li><a href="formatnetwork.html">Networks</a></li>
      <li><a href="formatnwfilter.html">Network filtering</a></li>
      <li><a href="formatnetworkport.html">Network ports</a></li>
      <li><a href="formatstorage.html">Storage</a></li>
      <li><a href="formatstorageencryption.html">Storage encryption</a></li>
      <li><a href="formatcaps.html">Capabilities</a></li>
      <li><a href="formatdomaincaps.html">Domain capabilities</a></li>
      <li><a href="formatstoragecaps.html">Storage Pool capabilities</a></li>
      <li><a href="formatnode.html">Node devices</a></li>
      <li><a href="formatsecret.html">Secrets</a></li>
      <li><a href="formatsnapshot.html">Snapshots</a></li>
      <li><a href="formatcheckpoint.html">Checkpoints</a></li>
    </ul>

    <h2>Command line validation</h2>

    <p>
      The <code>virt-xml-validate</code> tool provides a simple command line
      for validating XML documents prior to giving them to libvirt. It uses
      the locally instaled RNG schema documents. It will auto-detect which
      schema to use for validation based on the name of the top level element
      in the input document. Thus it merely requires the XML document filename
      to be passed on the command line
    </p>

    <pre>
$ virt-xml-validate /path/to/XML/file</pre>

  </body>
</html>