xml.NSAttribute

An NSAttribute object represents only special namespace binding XML attribute information item.

class xml.NSAttribute

Attributes

xml.NSAttribute.local_name

The local part of the attribute name. This does not include any namespace prefix or following colon.

xml.NSAttribute.namespace_name

The namespace name which is always http://www.w3.org/2000/xmlns/.

xml.NSAttribute.normalized_value

The normalized attribute value.

xml.NSAttribute.owner_element

The element information item which contains this information item in its attributes attribute.

xml.NSAttribute.prefix

The namespace prefix part of the attribute name. If the name is unprefixed, this attribute is None.

xml.NSAttribute.specified

A flag indicating whether this attribute was actually specified in the start-tag of its element, or was defaulted from the DTD.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__