pugixml.pugi.XMLNodeIterator
- class pugixml.pugi.XMLNodeIterator
Bases:
pybind11_objectA collection of nodes.
See also
Methods
__getitem__(*args, **kwargs)Overloaded function.
__init__(*args, **kwargs)__iter__(self)Return itself.
__len__(self)Return the collection size.
__next__(self)Return the next node from the collection.
Member Documentation
- __getitem__(*args, **kwargs)
Overloaded function.
__getitem__(self: pugixml.pugi.XMLNodeIterator, index: typing.SupportsInt | typing.SupportsIndex) -> pugixml.pugi.XMLNode
Return the node at the specified index from the collection.
__getitem__(self: pugixml.pugi.XMLNodeIterator, slice: slice) -> list[pugixml.pugi.XMLNode]
Return a list of nodes at the specified slice from the collection.
- Parameters:
index – An index to specify position.
slice – A
sliceobject to specify range.
- Returns:
The node(s) at the specified index/slice from the collection.
- __init__(*args, **kwargs)
- __iter__(self: pugixml.pugi.XMLNodeIterator) pugixml.pugi.XMLNodeIterator
Return itself.
- Returns:
self.
- __len__(self: pugixml.pugi.XMLNodeIterator) int
Return the collection size.
- Returns:
The collection size.
- __next__(self: pugixml.pugi.XMLNodeIterator) pugixml.pugi.XMLNode
Return the next node from the collection.
- Returns:
The next node from the collection.