OM - XML Mapping

Table 1. OM - XML Mapping
OM class method XML class method(s)
om.DomDocument.create xml.DomDocument.createDocument
om.DomDocument.createFromXmlFile xml.DomDocument.load
om.DomDocument.createFromString xml.DomDocument.loadFromString
om.DomDocument.copy xml.DomNode.clone
om.DomDocument.createChars xml.DomDocument.createTextNode
om.DomDocument.createEntity xml.DomDocument.createEntityReference
om.DomDocument.createElement xml.DomDocument.createElement
om.DomDocument.getDocumentElement xml.DomDocument.getFirstDocumentNode
om.DomDocument.getElementById xml.DomDocument.getElementById + xml.DomNode.setIdAttribute or xml.DomNode.setIdAttributeNS
om.DomDocument.removeElement xml.DomDocument.removeDocumentNode
om.DomNode.appendChild xml.DomDocument.createNode + xml.DomNode.appendChild
om.DomNode.createChild xml.DomDocument.createNode + xml.DomNode.appendChild
om.DomNode.insertBefore xml.DomNode.insertBeforeChild
om.DomNode.removeChild xml.DomNode.removeChild
om.DomNode.replaceChild xml.DomNode.replaceChild
om.DomNode.loadXml xml.DomDocument.loadFromString
om.DomNode.parse xml.DomDocument.createNode + add it to the DomDocument
om.DomNode.toString xml.DomNode.toString
om.DomNode.writeXml xml.DomDocument.save
om.DomNode.write xml.DomNode.toString
om.DomNode.getId N/A
om.DomNode.getTagName xml.DomNode.getLocalName
om.DomNode.setAttribute xml.DomNode.setAttribute
om.DomNode.getAttribute xml.DomNode.getAttribute
om.DomNode.getAttributeInteger xml.DomNode.getAttribute + condition for the default value and the cast
om.DomNode.getAttributeString xml.DomNode.getAttribute + condition for the default value and the cast
om.DomNode.getAttributeName xml.DomNode.getAttributeNodeItem + xml.DomNode.getLocalName
om.DomNode.getAttributesCount xml.DomNode.getAttributesCount
om.DomNode.getAttributeValue xml.DomNode.getAttributeNodeItem + xml.DomNode.getNodeValue
om.DomNode.removeAttribute xml.DomNode.removeAttribute
om.DomNode.getChildCount xml.DomNode.getChildrenCount
om.DomNode.getChildByIndex xml.DomNode.getChildNodeItem
om.DomNode.getFirstChild xml.DomNode.getFirstChild
om.DomNode.getLastChild xml.DomNode.getLastChild
om.DomNode.getNext xml.DomNode.getNextSibling
om.DomNode.getParent xml.DomNode.getParentNode
om.DomNode.getPrevious xml.DomNode.getPreviousSibling
om.DomNode.selectByTagName xml.DomNode.getElementsByTagName
om.DomNode.selectByPath xml.DomNode.selectByXPath
om.NodeList.item xml.DomNodeList.getItem
om.NodeList.getLength xml.DomNodeList.getCount

For more information on Genero built-in classes (such as the OM class), refer to Built-in packages.