| Home | Trees | Indices | Help |
|
|---|
object --+ | iterwalk
iterwalk(self, element_or_tree, events=("end",), tag=None)
A tree walker that generates events from an existing tree as if it was parsing XML data with iterparse().
Just as for iterparse(), the tag argument can be a single tag or a sequence of tags.
After receiving a 'start' or 'start-ns' event, the children and descendants of the current element can be excluded from iteration by calling the skip_subtree() method.
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
Inherited from object:
__class__
Prevent descending into the current subtree. Instead, the next returned event will be the 'end' event of the current element (if included), ignoring any children or descendants.
This has no effect right after an 'end' or 'end-ns' event.
| Home | Trees | Indices | Help |
|
|---|