This topic assists you in migrating code you have written using methods from the OM class to code that uses methods from the XML Library class.
You need to be able to utilize a feature (such as a StyleSheet) that requires the code to use XML class methods.
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 |
xml.DomNode.getAttributeName("Id") |
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.DomNodeList.item |
xml.DomNodeList.getItem |
om.DomNodeList.getLength |
xml.DomNodeList.getCount |
See also: The Genero Web Services XML Library
For more information on Genero built-in classes (such as the OM class), refer to the Genero Business Development Language Manual.