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-5
Properties
lastChild
Gets the last child of this node, or null if it is unspecified.
Remarks
Object (XMLDOMNode Object
). Read-only.
Syntax
var oNode = oNode.lastChild
Example
var domDoc = new XML.DOMDocument;
domDoc.validateOnParse = true;
domDoc.load("sample.xml");
var root = domDoc.documentElement;
var last = root.lastChild;
var idNode = last.childNodes.item(0);
print("lastChild ")
println(idNode.nodeName + " = " +
idNode.childNodes.item(0).nodeValue);
Output
lastChild name = John Martin
namespaceURI
Gets the namespace URI of this node, or null if it is unspecified.
This is not a computed value that is the result of a namespace lookup based on an
examination of the namespace declarations in scope. It is merely the namespace URI
given at creation time.
For nodes of any type other than XMLDOMElement and XMLDOMAttribute and
nodes created with a DOM level-1 method, such as createElement from the
DOMDocument, this is always returned null. This property is a level-2 extension of
the W3C DOM.
Data Type
String. Read-only.
Syntax
var strURI = oNode.namespaceURI
nextSibling
Gets the node immediately following this node, or null if it is unspecified.
Remarks
Object (XMLDOMNode Object
). Read-only.