xml.NSAttributeInformationItem

The xml.NSAttributeInformationItem class represents an XML namespace attribute and exposes the properties of the Attribute Information Item.

Base class: xml.InformationItem

class xml.NSAttributeInformationItem

Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a NotImplementedError exception.

Attributes

xml.InformationItem.document

Returns an xml.Document object representing the XML instance file containing this information item.

xml.InformationItem.first_child

Returns an xml.InformationItem object representing the first child information item. Returns None if this information item does not have any children.

xml.NSAttributeInformationItem.local_name

Returns the local part of the attribute name. This does not include any namespace prefix or following colon. So this is the prefix part of the namespace binding (e.g. xmlns:prefix=”namespace_uri”).

xml.NSAttributeInformationItem.namespace_name

Returns the namespace name which is always ‘http://www.w3.org/2000/xmlns/’.

xml.NSAttributeInformationItem.next

Returns an xml.NSAttributeInformationItem object representing the next namespace attribute in document order. Returns None if this is the last namespace attribute.

xml.NSAttributeInformationItem.normalized_value

Return the normalized attribute value. This is the namespace uri of the namespace binding (e.g. xmlns:prefix=”namespace_uri”).

xml.NSAttributeInformationItem.owner_element

Returns the xml.ElementInformationItem which contains this xml.NSAttributeInformationItem in its namespace_attributes property.

xml.NSAttributeInformationItem.prefix

Returns the namespace prefix part of the attribute name. This is always “xmlns” except for the binding of the default namespace (xmlns=”namespace_uri”), where it is None.

xml.NSAttributeInformationItem.prev

Returns an xml.NSAttributeInformationItem object representing the previous namespace attribute in document order. Returns None if this is the first namespace attribute.

xml.NSAttributeInformationItem.qname

Returns an xml.QName object representing the expended name of the XML namespace attribute.

xml.NSAttributeInformationItem.specified

Returns True if this attribute was specified in the start-tag of its owner_element and False if it was defaulted from the DTD or W3C Schema.

Methods

xml.InformationItem.xlocation_url(item_value=False)

Returns proprietary Altova URL to this Item. If item_value is True the URL references the value content of an Element or Attribute item (is ignored for other kinds).

Special methods

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