IBM Version 5 Universal Remote User Manual


 
Chapter 3. Processing XML 63
Attr
Element
Tex t
Comment
CDATASection
DocumentType
Notation
Entity
EntityReference
ProcessingInstruction
These specialized interfaces all inherit the basic attributes and methods provided
by the Node interface. They also provide specialized access to unique information
associated with each specific XML document item. The resulting specialized
nodes are stored in a list of lists structure that has parent_child and
sibling-to-sibling links. For example, the following document in Example 3-5
would produce the tree of DOM nodes in memory shown in Figure 3-4 on
page 64. The structure can be traversed using the parent, child, and sibling links
available through the node interface.
Example 3-5 Sample XML document
<?xml version="1.0" encoding="UTF-8"?>
<Customer>
<name>Mary Smith</name>
<membership>10001</membership>
</Customer>
<Customer>
<name>Dave Johnson</name>
<membership>12345</membership>
</Customer>