</start>
<include href='storageencryption.rng'/>
+
+ <!--
+ description element, maybe placed anywhere under the root
+ -->
+ <define name="description">
+ <element name="description">
+ <text/>
+ </element>
+ </define>
+
<!--
We handle only document defining a domain
-->
<ref name="hvs"/>
<ref name="ids"/>
<interleave>
+ <optional>
+ <ref name="description"/>
+ </optional>
<ref name="os"/>
<ref name="clock"/>
<ref name="resources"/>
VIR_FREE(def->name);
VIR_FREE(def->cpumask);
VIR_FREE(def->emulator);
+ VIR_FREE(def->description);
virSecurityLabelDefFree(def);
VIR_FREE(tmp);
}
+ /* Extract documentation if present */
+ def->description = virXPathString(conn, "string(./description[1])", ctxt);
+
/* Extract domain memory */
if (virXPathULong(conn, "string(./memory[1])", ctxt, &def->maxmem) < 0) {
virDomainReportError(conn, VIR_ERR_INTERNAL_ERROR,
virUUIDFormat(uuid, uuidstr);
virBufferVSprintf(&buf, " <uuid>%s</uuid>\n", uuidstr);
+ if (def->description)
+ virBufferEscapeString(&buf, " <description>%s</description>\n",
+ def->description);
+
virBufferVSprintf(&buf, " <memory>%lu</memory>\n", def->maxmem);
virBufferVSprintf(&buf, " <currentMemory>%lu</currentMemory>\n",
def->memory);