GeoEco.Metadata.Metadata.AppendPropertyXMLNode

classmethod Metadata.AppendPropertyXMLNode(instance, propertyName, node, document)

Appends the specified property to the specified xml.dom.Node object as a child element.

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 from Metadata.

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.