pugixml.pugi.XMLAttributeIterator

class pugixml.pugi.XMLAttributeIterator

Bases: pybind11_object

A collection of attributes.

Methods

__getitem__(*args, **kwargs)

Overloaded function.

__init__(*args, **kwargs)

__iter__(self)

Return itself.

__len__(self)

Return the collection size.

__next__(self)

Return the next attribute from the collection.

Member Documentation

__getitem__(*args, **kwargs)

Overloaded function.

  1. __getitem__(self: pugixml.pugi.XMLAttributeIterator, index: typing.SupportsInt | typing.SupportsIndex) -> pugixml.pugi.XMLAttribute

    Return the attribute at the specified index from the collection.

  2. __getitem__(self: pugixml.pugi.XMLAttributeIterator, slice: slice) -> list[pugixml.pugi.XMLAttribute]

    Return a list of attributes at the specified slice from the collection.

Parameters:
  • index – An index to specify position.

  • slice – A slice object to specify range.

Returns:

The attribute(s) at the specified index/slice from the collection.

__init__(*args, **kwargs)
__iter__(self: pugixml.pugi.XMLAttributeIterator) pugixml.pugi.XMLAttributeIterator

Return itself.

Returns:

self.

__len__(self: pugixml.pugi.XMLAttributeIterator) int

Return the collection size.

Returns:

The collection size.

__next__(self: pugixml.pugi.XMLAttributeIterator) pugixml.pugi.XMLAttribute

Return the next attribute from the collection.

Returns:

The next attribute from the collection.