Constants for whatToShow.
SHOW_ALL:
Show all DOMNode(s)
.
SHOW_ELEMENT:
Show DOMElement
nodes.
SHOW_ATTRIBUTE:
Show DOMAttr
nodes. This is meaningful only when creating an DOMNodeIterator
or DOMTreeWalker
with an attribute node as its root
; in this case, it means that the attribute node will appear in the first position of the iteration or traversal. Since attributes are never children of other nodes, they do not appear when traversing over the document tree.
SHOW_TEXT:
Show DOMText
nodes.
SHOW_CDATA_SECTION:
Show DOMCDATASection
nodes.
SHOW_ENTITY_REFERENCE:
Show DOMEntityReference
nodes.
SHOW_ENTITY:
Show DOMEntity
nodes. This is meaningful only when creating an DOMNodeIterator
or DOMTreeWalker
with an DOMEntity
node as its root
; in this case, it means that the DOMEntity
node will appear in the first position of the traversal. Since entities are not part of the document tree, they do not appear when traversing over the document tree.
SHOW_PROCESSING_INSTRUCTION:
Show DOMProcessingInstruction
nodes.
SHOW_COMMENT:
Show DOMComment
nodes.
SHOW_DOCUMENT:
Show DOMDocument
nodes.
SHOW_DOCUMENT_TYPE:
Show DOMDocumentType
nodes.
SHOW_DOCUMENT_FRAGMENT:
Show DOMDocumentFragment
nodes.
SHOW_NOTATION:
Show DOMNotation
nodes. This is meaningful only when creating an DOMNodeIterator
or DOMTreeWalker
with a DOMNotation
node as its root
; in this case, it means that the DOMNotation
node will appear in the first position of the traversal. Since notations are not part of the document tree, they do not appear when traversing over the document tree.
- Since:
- DOM Level 2
- Enumerator:
-
SHOW_ALL |
|
SHOW_ELEMENT |
|
SHOW_ATTRIBUTE |
|
SHOW_TEXT |
|
SHOW_CDATA_SECTION |
|
SHOW_ENTITY_REFERENCE |
|
SHOW_ENTITY |
|
SHOW_PROCESSING_INSTRUCTION |
|
SHOW_COMMENT |
|
SHOW_DOCUMENT |
|
SHOW_DOCUMENT_TYPE |
|
SHOW_DOCUMENT_FRAGMENT |
|
SHOW_NOTATION |
|