lxml.etree._BaseParser

Package lxml :: Module etree :: Class _BaseParser |
[hide private]
[frames] | no frames]

# Class _BaseParser

    object --+
             |
            _BaseParser

Known Subclasses:
  - _FeedParser
  - , iterparse

Instance Methods | [hide private]
__init__(...) x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
a new object with type S, a subtype of T |
__new__(T, S, ...) |
copy(self) Create a new parser with the same configuration. |
makeelement(self, _tag, attrib=None, nsmap=None, **_extra) Creates a new element associated with this parser. |
setElementClassLookup(...) |
set_element_class_lookup(self, lookup= None) Set a lookup scheme for element classes generated from this parser. |
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]
| error_log The error log of the last parser run.
| resolvers The custom resolver registry of this parser.
| target
| version The version of the underlying XML parser.
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(...) (Constructor) |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__

### __new__(T, S, ...) |
Returns: a new object with type S, a subtype of T Overrides: object.__new__

### setElementClassLookup(...) |
Deprecated: use `parser.set_element_class_lookup(lookup)` instead.

### set_element_class_lookup(self, lookup= None) |
Set a lookup scheme for element classes generated from this parser. Reset it by passing None or nothing.