iTP Active Transaction Pages (iTP ATP) Programmer's Guide

XML for ATP Add-On Module
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
5-6
Properties
Syntax
var oNode = oNode.nextSibling
Example
var domDoc = new XML.DOMDocument;
domDoc.validateOnParse = true;
domDoc.load("sample.xml");
var root = domDoc.documentElement;
var next = root.firstChild.nextSibling;
print("nextSibling: " + next.childNodes.item(0).nodeName + "
= ");
println(next.childNodes.item(0).childNodes.item(0).nodeValue;
Output
nextSibling: name = Lily Ramos
nodeName
Gets the name of this node. The nodeName value varies as follows, depending on
the nodeType property.
Node Type Node Name
NODE_ATTRIBUTE Contains the name of the attribute
NODE_CDATA_SECTION Contains the literal string "#cdata-section"
NODE_COMMENT Contains the literal string "#comment"
NODE_DOCUMENT Contains the literal string "#document"
NODE_DOCUMENT_TYPE Contains the name of the document type; for
example, xxx in <!DOCTYPE xxx ...>
NODE_DOCUMENT_FRAGMENT Contains the literal string "#document-
fragment"
NODE_ELEMENT Contains the name of the XML tag, with any
namespace prefix included, if present
NODE_ENTITY Contains the name of the entity
NODE_ENTITY_REFERENCE Contains the name of the entity referenced.
Note that the name does not include the
leading ampersand or the trailing semicolon.
The name includes the namespace if one is
present
NODE_NOTATION Contains the name of the notation
NODE_PROCESSING_INSTRUCTION Contains the target; the first token following
the <? characters
NODE_XMLDECL Contains the literal string "#xmldecl"
NODE_TEXT Contains the literal string "#text"