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

# Class ETXPath

             object --+
                      |
    _XPathEvaluatorBase --+
                          |
                      XPath --+
                              |
                             ETXPath

ETXPath(self, path, extensions=None, regexp=True, smart_strings=True) Special XPath class that supports the ElementTree {uri} notation for namespaces.

Note that this class does not accept the `namespace` keyword argument. All namespaces must be passed as part of the path string. Smart strings will be returned for string results unless you pass `smart_strings=False`.

Instance Methods | [hide private]
__init__(self, path, extensions=None, regexp=True, smart_strings=True) x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
a new object with type S, a subtype of T |
__new__(T, S, ...) |
Inherited from `XPath`: `__call__`, `__repr__` Inherited from `_XPathEvaluatorBase`: `evaluate` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]
Inherited from `XPath`: `path` Inherited from `_XPathEvaluatorBase`: `error_log` Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, path, extensions=None, regexp=True, smart_strings=True) (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__