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-18
Properties
Properties
doctype
Gets the Document Type Declaration (DTD) associated with this document. For
documents without a document type declaration, this returns a null reference object.
The DOM Level 1 does not support editing the Document Type Declaration,
therefore doctype cannot be altered in any way.
Remarks
Object (XMLDOMDocumentType Object
). Read-only.
Syntax
var oNode = domDoc.doctype
Example
var doc = new XML.DOMDocument;
doc.load("sample.xml");
println("Document type name= " + doc.doctype.name);
Output
Document type name= class99
documentElement
Contains the root element of the document. This property returns the root element of
the XML document tree, or null if no root exists.
Remarks
Object (XMLDOMElement Object
). Read-only.
Syntax
var objElement = domDoc.documentElement
Example
var doc = new XML.DOMDocument;
doc.load("sample.xml");
println(doc.documentElement.nodeName);
Output
class99
implementation
Contains the XMLDOMImplementation Object of the document.
Remarks
Object (XMLDOMImplementation Object
). Read-only.