create_node_iterator method
Contents
[
Hide
]create_node_iterator
Create a new NodeIterator over the subtree rooted at the specified node.
Returns
The newly created NodeIterator.
def create_node_iterator(self, root):
...
Parameter | Type | Description |
---|---|---|
root | Node | node which will be iterated together with its children. The iterator is initially positioned just before this node. The whatToShow flags and the filter, if any, are not considered when setting this position. The root must not be null. |
Exceptions
Exception | Description |
---|---|
DOMException | NOT_SUPPORTED_ERR: Raised if the specified root is null. |
create_node_iterator
Create a new NodeIterator over the subtree rooted at the specified node.
Returns
The newly created NodeIterator.
def create_node_iterator(self, root, what_to_show):
...
Parameter | Type | Description |
---|---|---|
root | Node | node which will be iterated together with its children. The iterator is initially positioned just before this node. The whatToShow flags and the filter, if any, are not considered when setting this position. The root must not be null. |
what_to_show | int | flag specifies which node types may appear in the logical view of the tree presented by the iterator. See the description of NodeFilter for the set of possible SHOW_ values.These flags can be combined using OR. |
Exceptions
Exception | Description |
---|---|
DOMException | NOT_SUPPORTED_ERR: Raised if the specified root is null. |
create_node_iterator
Create a new NodeIterator over the subtree rooted at the specified node.
Returns
The newly created NodeIterator.
def create_node_iterator(self, root, what_to_show, filter):
...
Parameter | Type | Description |
---|---|---|
root | Node | node which will be iterated together with its children. The iterator is initially positioned just before this node. The whatToShow flags and the filter, if any, are not considered when setting this position. The root must not be null. |
what_to_show | int | flag specifies which node types may appear in the logical view of the tree presented by the iterator. See the description of NodeFilter for the set of possible SHOW_ values.These flags can be combined using OR. |
filter | aspose.html.dom.traversal.INodeFilter | NodeFilter to be used with this TreeWalker, or null to indicate no filter. |
Exceptions
Exception | Description |
---|---|
DOMException | NOT_SUPPORTED_ERR: Raised if the specified root is null. |
See Also
- module
aspose.html.dom
- class
DOMException
- class
Document
- class
INodeIterator