iTP Active Transaction Pages (iTP ATP) Programmer's Guide
XML for ATP Add-On Module
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide—522292-002
5-3
Properties
Table 5-3 specifies the common methods of XMLDOMNode and other DOM objects.
Properties
attributes
Contains an XMLDOMNamedNodeMap Object, which stores all the attributes of
this node if it is an element or null if it is unspecified.
Remarks
Object. Read-only.
Syntax
var objNamedNodeMap = oNode.attributes
Example
var domDoc = new XML.DOMDocument;
domDoc.load("sample.xml");
var mapNodes = domDoc.documentElement.attributes;
println(“total attributes = “ + mapNodes.length);
parentNode Contains the parent node (for nodes that can have parents).
previousSibling Contains the node immediately preceding this node in the
parent’s child list.
xml Contains the XML representation of the node and all its
descendants.
Table 5-3. Common Methods of XMLDOMNode and Other DOM Objects
Method Description
appendChild Adds newChild to the end of the list of children of this node.
cloneNode Serves as a generic copy constructor for nodes.
hasChildNodes Provides a convenient method to allow easy determination of
whether a node has any children.
insertBefore Inserts the node newChild before the existing child node
refChild.
removeChild Removes the child node indicated by oldChild from the list
of children, and returns it.
replaceChild Replaces the child node oldChild with newChild in the
list of children and returns the oldChild node.
Table 5-2. Common Properties of XMLDOMNode and Other DOM
Objects (page 2 of 2)
Property Description