xml.CommentInformationItem

The xml.CommentInformationItem class represents an XML comment and exposes the properties of the Comment Information Item.

Base class: xml.InformationItem

class xml.CommentInformationItem

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

Attributes

xml.CommentInformationItem.content

Returns a string representing the content of the comment.

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.CommentInformationItem.parent

Returns the xml.DocumentInformationItem or xml.ElementInformationItem which contains this xml.CommentInformationItem in its children property.

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__