Package lxml :: Module etree :: Class PIBase

[hide private]
[frames] | no frames]

# Class PIBase

             object --+
                      |
               _Element --+
                          |
    ??.__ContentOnlyElement --+
                              |
         _ProcessingInstruction --+
                                  |
                                 PIBase

Known Subclasses:
  - _XSLTProcessingInstruction
  - , html.HtmlProcessingInstruction

All custom Processing Instruction classes must inherit from this one.

To create an XML ProcessingInstruction instance, use the `PI()` factory.

Subclasses must not override __init__ or __new__ as it is absolutely undefined when these objects will be created or destroyed. All persistent state of PIs must be stored in the underlying XML. If you really need to initialize the object after creation, you can implement an `_init(self)` method that will be called after object creation.

Instance Methods | [hide private]

__init__(...) x.__init__(...) initializes x; see help(type(x)) for signature |

a new object with type S, a subtype of T

__new__(T, S, ...) |

Inherited from `_ProcessingInstruction`: `__repr__`, `get`

Inherited from `unreachable.__ContentOnlyElement`: `__delitem__`, `__getitem__`, `__len__`, `__setitem__`, `append`, `insert`, `items`, `keys`, `set`, `values`

Inherited from `_Element`: `__contains__`, `__copy__`, `__deepcopy__`, `__iter__`, `__nonzero__`, `__reversed__`, `addnext`, `addprevious`, `clear`, `extend`, `find`, `findall`, `findtext`, `getchildren`, `getiterator`, `getnext`, `getparent`, `getprevious`, `getroottree`, `index`, `iter`, `iterancestors`, `iterchildren`, `iterdescendants`, `iterfind`, `itersiblings`, `itertext`, `makeelement`, `remove`, `replace`, `xpath`

Inherited from `_Element` (private): `_init`

Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]

Inherited from `_ProcessingInstruction`: `attrib`, `tag`, `target` Inherited from `unreachable.__ContentOnlyElement`: `text` Inherited from `_Element`: `base`, `nsmap`, `prefix`, `sourceline`, `tail` Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(...)
(Constructor)

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__

### __new__(T, S, ...)

Returns: a new object with type S, a subtype of T
Overrides: object.__new__