xml.ProcessingInstruction

A ProcessingInstruction object represents an XML processing instruction information item.

class xml.ProcessingInstruction

Attributes

xml.ProcessingInstruction.content

A string representing the content of the processing instruction, excluding the target and any white space immediately following it. If there is no such content, the value of this attribute will be an empty string.

xml.ProcessingInstruction.parent

The document, element, or document type declaration information item which contains this information item in its children attribute.

xml.ProcessingInstruction.target

A string representing the target part of the processing instruction.

Special methods

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