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

Class XPath



         object --+    
                  |    
_XPathEvaluatorBase --+
                      |
                     XPath
Known Subclasses:
cssselect.CSSSelector, ETXPath

A compiled XPath expression that can be called on Elements and ElementTrees.

Besides the XPath expression, you can pass prefix-namespace mappings and extension functions to the constructor through the keyword arguments ``namespaces`` and ``extensions``. EXSLT regular expression support can be disabled with the 'regexp' boolean keyword (defaults to True).

Instance Methods [hide private]
 
__call__(...)
 
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__new__(T, S, ...)
Returns: a new object with type S, a subtype of T
 
__repr__(...)
repr(x)

Inherited from _XPathEvaluatorBase: evaluate

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]
  path

Inherited from _XPathEvaluatorBase: error_log

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: _XPathEvaluatorBase.__init__

__new__(T, S, ...)

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

Overrides: _XPathEvaluatorBase.__new__

__repr__(...)
(Representation operator)

 
repr(x)
Overrides: object.__repr__
(inherited documentation)