2013-05-03 14:25:37 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2017-07-26 17:01:25 +00:00
|
|
|
<!DOCTYPE html>
|
2008-04-23 17:08:31 +00:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<body>
|
2016-11-08 11:35:20 +00:00
|
|
|
<h1>XML Format</h1>
|
2008-04-23 17:08:31 +00:00
|
|
|
|
|
|
|
|
2016-11-08 11:35:20 +00:00
|
|
|
<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>
|
2017-07-26 17:18:16 +00:00
|
|
|
<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>
|
2019-07-16 15:39:30 +00:00
|
|
|
<li><a href="formatnetworkport.html">Network ports</a></li>
|
2017-07-26 17:18:16 +00:00
|
|
|
<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>
|
2019-02-07 20:26:00 +00:00
|
|
|
<li><a href="formatstoragecaps.html">Storage Pool capabilities</a></li>
|
2017-07-26 17:18:16 +00:00
|
|
|
<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>
|
2018-06-12 03:12:21 +00:00
|
|
|
<li><a href="formatcheckpoint.html">Checkpoints</a></li>
|
2019-08-22 01:42:41 +00:00
|
|
|
<li><a href="formatbackup.html">Backup jobs</a></li>
|
2016-11-08 11:35:20 +00:00
|
|
|
</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>
|
2016-11-11 22:40:27 +00:00
|
|
|
$ virt-xml-validate /path/to/XML/file</pre>
|
2008-04-23 17:08:31 +00:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|