Java Reference
In-Depth Information
Node Types (continued)
Type Name
Integer Value
Introduced
Associated Data Type
CDATA_SECTION_
NODE
4
Level 1
CDATASection
ENTITY_
REFERENCE_NODE
5
Level 1
EntityReference
ENTITY_NODE
6
Level 1
Entity
PROCESSING_
INSTRUCTION_
NODE
7
Level 1
ProcessingInstruction
COMMENT_NODE
8
Level 1
Comment
DOCUMENT_NODE
9
Level 1
Document
DOCUMENT_TYPE_
NODE
10
Level 1
DocumentType
DOCUMENT_
FRAGMENT_NODE
11
Level 1
DocumentFragment
NOTATION_NODE
12
Level 1
Notation
Properties
Property Name
Description
Introduced
attributes
A NamedNodeMap containing the attributes of this node if it
is an Element , or null otherwise.
Level 1
childNodes
A NodeList containing all children of this node.
Level 1
firstChild
Gets the fi rst child of this node. Returns null if no child
exists.
Level 1
lastChild
Gets the last child of this node. Returns null if no child
exists.
Level 1
localName
Returns the local part of the node's qualifi ed name (the part
after the colon of the qualifi ed name when namespaces are
used). Used primarily in XML DOMs.
Level 2
namespaceURI
The namespace URI of the node, or null if not specifi ed.
Level 2
nextSibling
Gets the node immediately following this node. Returns
null if no following sibling exists.
Level 1
nodeName
Gets the name of this node.
Level 1
Search WWH ::




Custom Search