pugixml.pugi.XMLAttributeΒΆ

class pugixml.pugi.XMLAttribute

Bases: pybind11_object

A light-weight handle for manipulating attributes in DOM tree.

Members:

__bool__(self)

Determine if this attribute is not empty.

__eq__(self, other)

Return self == other.

__ge__(self, other)

Return self >= other.

__gt__(self, other)

Return self > other.

__hash__(self)

Return the hash value (unique for handles to the same object).

__init__(*args, **kwargs)

Overloaded function.

__le__(self, other)

Return self <= other.

__lt__(self, other)

Return self < other.

__ne__(self, other)

Return self != other.

as_bool(self[, default])

Return the attribute value as a boolean.

as_double(self[, default])

Return the attribute value as a number [DBL_MIN, DBL_MAX].

as_float(self[, default])

Return the attribute value as a number [FLT_MIN, FLT_MAX].

as_int(self[, default])

Return the attribute value as a number [INT_MIN, INT_MAX].

as_llong(self[, default])

Return the attribute value as a number [LLONG_MIN, LLONG_MAX].

as_string(self[, default])

Return the attribute value.

as_uint(self[, default])

Return the attribute value as a number [0, UINT_MAX].

as_ullong(self[, default])

Return the attribute value as a number [0, ULLONG_MAX].

empty(self)

Determine if this attribute is empty.

hash_value(self)

Return the hash value (unique for handles to the same object).

internal_object(self)

Return the internal object.

name(self)

Return the attribute name.

next_attribute(self)

Return the next attribute in the list of attributes of the parent node.

previous_attribute(self)

Return the previous attribute in the list of attributes of the parent node.

set_name(*args, **kwargs)

Overloaded function.

set_value(*args, **kwargs)

Overloaded function.

value(self)

Return the attribute value.