GeoEco.Metadata.Metadata.AppendPropertyDocutilsXMLNodes
- classmethod Metadata.AppendPropertyDocutilsXMLNodes(instance, propertyName, node, document)
Appends the specified property to the specified xml.dom.Node object as a child element, first running it through the docutils processor to translate reStructuredText into docutils XML.
This is a helper function mainly intended to be called by derived class implementations of
AppendXMLNodes(). In certain circumstances, it is also called from classes that do not derive fromMetadata.- Parameters:
instance (
object) – Instance of a class that has the property specified by propertyName.propertyName (
str) – Name of the property to append to node as a child element. Minimum length꞉ 1.node (
Node) – xml.dom.Node to which metadata should be appended.document (
Node) – xml.dom.Node that represents the XML document.