xml.InformationItem

The xml.InformationItem class is the base class for all Information Items.

class xml.InformationItem

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.InformationItem.next

Returns an xml.InformationItem object representing the next sibling information item. Returns None if there is no next sibling information item.

xml.InformationItem.prev

Returns an xml.InformationItem object representing the previous sibling information item. Returns None if there is no previous sibling information item.

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__