iTP Active Transaction Pages (iTP ATP) Programmer's Guide
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide—522292-002
5-1
5
XML for ATP Add-On Module
The optional XML for ATP add-on module provides a standardized way to access and
manipulate the information stored in XML documents. The Document Object Model
(DOM) Objects API serves as a bridge between applications and XML documents,
enabling applications to work with XML document structures and information as
program structures rather than as text streams. Applications and scripts can read and
manipulate these structures without knowing the details of XML syntax.
The DOM uses two key abstractions: a tree-like hierarchy and nodes that represent
document content and structures. In other words, the DOM model provides a generic
container, the node, that can be used to represent elements, attributes, textual contents,
comments, and so forth. Each node type has different access methods and content
limitations.
Table 5-1
shows the types of nodes and related objects defined in the XML for ATP
DOM objects library. Each object is then described, along with the properties and
methods that are unique to that object only.
Table 5-1. XML for ATP DOM Objects (page 1 of 2)
Object Description
XMLDOMNode Object
The primary data type for the entire document object
model, this object represents a single node in the
document tree. The actual type of the node is
determined by the property nodeType.
DOMDocument Object
Represents the top node of the XML for ATP DOM
tree.
XMLDOMParseError Object
Returns detailed information about the last error,
including the error number, line number, character
position, and a text description.
XMLDOMNodeList Object
Supports iteration and indexed access operations on
the live collection of XMLDOMNode objects.
XMLDOMNamedNodeMap
Object
Provides iteration and access by name to the
collection of attributes. This interface includes
support for namespaces.
XMLDOMAttribute Object
Represents an attribute object.
XMLDOMElement Object
Represents the element object.
XMLDOMDocumentFragment
Object
Represents a lightweight object that is useful for tree
insert operations.
XMLDOMDocumentType Object
Contains information associated with the document
type declaration.
XMLDOMEntity Object
Represents a parsed or unparsed entity in the XML
document.
XMLDOMEntityReference
Object
Represents an entity reference node.