xml.CharDataInformationItem¶
The xml.CharDataInformationItem class represents XML character data and exposes the properties of the
Character Information Item.
Base class: xml.InformationItem
-
class
xml.CharDataInformationItem¶ Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedErrorexception.
Attributes¶
-
xml.InformationItem.document Returns an
xml.Documentobject representing the XML instance file containing this information item.
-
xml.CharDataInformationItem.element_content_whitespace¶ Returns a boolean indicating whether the character is white space appearing within element content.
-
xml.InformationItem.first_child Returns an
xml.InformationItemobject representing the first child information item. Returns None if this information item does not have any children.
-
xml.InformationItem.next Returns an
xml.InformationItemobject representing the next sibling information item. Returns None if there is no next sibling information item.
-
xml.CharDataInformationItem.parent¶ Returns the
xml.ElementInformationItemwhich contains thisxml.CharDataInformationItemin its children property.
-
xml.InformationItem.prev Returns an
xml.InformationItemobject representing the previous sibling information item. Returns None if there is no previous sibling information item.
-
xml.CharDataInformationItem.value¶ Returns a string representing all merged adjacent character information item’s code points.
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__