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-56
Properties
Properties
name
Contains the name of DTD, the name immediately following the DOCTYPE
keyword in an XML source document. When specified, this corresponds to the
single root element of the document tree.
Remarks
String. Read-only.
Syntax
strValue = oXMLDOMDocumentType.name
Example
var doc = new XML.DOMDocument;
doc.load("sample.xml");
var node = doc.doctype;
println(node.nodeName);
Output
class99
entities
An XMLDOMNamedNodeMap Object containing the general entities, both external
and internal, declared in the DTD. Parameter entities are not contained. Duplicates
are discarded.
Remarks
Object (XMLDOMNamedNodeMap Object
). Read-only.
Syntax
objXMLDOMNamedNodeMap = oXMLDOMDocumentType.entities
Example
var doc = new XML.DOMDocument;
doc.load("sample.xml");
var map = doc.doctype.entities;
for (var i=0; i<map.length; i++)
{
print(map.item(i).nodeName + " ");
}
Output
gt lt amp apos ent1 ent2 ent3 ent4 ent5 quot