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-4
Properties
Output
total attributes = 0
childNodes
Gets a node list that contains all children of this node. If there are no children, this is
an XMLDOMNodeList Object
that contains no nodes. The content of the returned
object is “live” in the sense that, for instance, changes to the children of the node
object that it was created from are immediately reflected in the nodes returned by
the XMLDOMNodeList accessors; in other words, it is not a static snapshot of the
content of the node. This is true for every XMLDOMNodeList object, including the
ones returned by the getElementsByTagName method.
Remarks
Object (XMLDOMNodeList Object
). Read-only.
Syntax
var oNodeList = oNode.childNodes
Example
var domDoc = new XML.DOMDocument;
domDoc.validateOnParse = true;
domDoc.load("sample.xml");
var root = domDoc.documentElement;
var children = root.childNodes;
println("There are " + children.length + " childNodes");
Output
There are 5 childNodes
firstChild
Gets the first child of this node, or null if it is unspecified.
Remarks
Object (XMLDOMNode Object
). Read-only.
Syntax
var oNode = oNode. firstChild
Example
var domDoc = new XML.DOMDocument;
domDoc.validateOnParse = true;
domDoc.load("sample.xml");
var root = domDoc.documentElement;
println("firstChild nodeName: " + root.firstChild.nodeName);
Output
firstChild nodeName: student