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-11
Methods
Output
previousSibling = #comment
xml
Contains the string representation of the node and all its descendents.
Remarks
String. Read-only.
Syntax
var strValue = oNode.xml
Example
var domDoc = new XML.DOMDocument;
domDoc.validateOnParse = false;
domDoc.load("sample.xml");
var root = domDoc.documentElement;
var node = root.childNodes.item(1);
println(node.xml);
Output
<student id="NUM16001">
<name>Jenny Mabry</name>
<department>Computer Science</department>
<GPA>3.6</GPA>
<gender>Female</gender>
<address street="Yes" permanent="Yes">1010 Fargo Drive,
Cupertino, California 95014 </address>
</student>
Methods
appendChild
Adds a new node to the end of the list of children of this node. If the newChild is
already in the tree, it is first removed.
Syntax
var oReturn = oNode.appendChild(newChild)
Parameters
newChild β The node to add. If it is an XMLDOMDocumentFragment Object
, the
entire contents of the document fragment are moved into the child list of this node.
Return Value
oReturn β The new child node successfully appended to the list.