This can be used to format XML where the element has direct value
instead of any subelement. For example:
<maxMemory slots='16' unit='KiB'>
1524288</maxMemory>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
virXMLCheckIllegalChars;
virXMLExtractNamespaceXML;
virXMLFormatElement;
+virXMLFormatElementDirect;
virXMLFormatElementEmpty;
virXMLFormatElementInternal;
virXMLFormatMetadata;
}
+/**
+ * Same as virXMLFormatElement but the child is direct value without
+ * subelements.
+ */
+void
+virXMLFormatElementDirect(virBuffer *buf,
+ const char *name,
+ virBuffer *attrBuf,
+ virBuffer *childBuf)
+{
+ virXMLFormatElementInternal(buf, name, attrBuf, childBuf, false, false);
+}
+
+
/**
* virXMLFormatElement
* @buf: the parent buffer where the element will be placed
virBuffer *attrBuf,
virBuffer *childBuf);
+void
+virXMLFormatElementDirect(virBuffer *buf,
+ const char *name,
+ virBuffer *attrBuf,
+ virBuffer *childBuf);
+
int
virXMLFormatMetadata(virBuffer *buf,
xmlNodePtr metadata);