xml.ProcessingInstructionInformationItem
¶
The xml.ProcessingInstructionInformationItem
class represents an XML processing instruction and exposes the properties of
the Processing Instruction Information Item.
Base class: xml.InformationItem
- class xml.ProcessingInstructionInformationItem¶
Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedError
exception.
Attributes¶
- xml.ProcessingInstructionInformationItem.base_uri¶
Returns the base URI of the processing instruction.
- xml.ProcessingInstructionInformationItem.content¶
Returns a string representing the content of the processing instruction, excluding the target and any white space immediately following it, or returns None if there is no such content.
- 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.ProcessingInstructionInformationItem.notation¶
Returns the
xml.NotationInformationItem
named by the target. If there is no declaration for a notation with that name, or there are multiple declarations, this property returns None.
- xml.ProcessingInstructionInformationItem.parent¶
Returns the
xml.DocumentInformationItem
,xml.ElementInformationItem
, orxml.DocumentTypeDeclarationInformationItem
which contains thisxml.ProcessingInstructionInformationItem
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.
- xml.ProcessingInstructionInformationItem.target¶
Returns a string representing the target part of the processing instruction.
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__