AdvancedHTMLParser.xpath
index

Copyright (c) 2019 Timothy Savannah under terms of LGPLv3. All Rights Reserved.
 
See LICENSE (https://gnu.org/licenses/lgpl-3.0.txt) for more information.
 
See: https://github.com/kata198/AdvancedHTMLParser for full information
 
xpath - Provide xpath support
 
    NOTE: THIS IS STILL IN ALPHA.
 
        Several parts of the XPath spec are not yet implemented,
         nor has the code yet been organized or optimized.

 
Package Contents
       
_axes
_body
_cache
_debug
_filters
exceptions
expression
null
operation
parsing

 
Classes
       
__builtin__.object
AdvancedHTMLParser.xpath.expression.XPathExpression

 
class XPathExpression(__builtin__.object)
    XPathExpression - The main class for dealing with XPath expressions
 
  Methods defined here:
__init__(self, xpathStr)
__init__ - Create this object from a string expression
 
    @param xpathStr <str> - An xpath expression
evaluate(self, pathRoot)
    evaluate - Run this XPath expression against a tree, and return the results.
 
        @param pathRoot <
curResults = [ pathRoot ]
                Tags.AdvancedTag [From a single root tag] -or-
                Parser.AdvancedHTMLParser [From the root of a document] -or-
                (list/tuple)<Tags.AdvancedTag> [From a list or tuple of tags] -or-
                Tags.TagCollecction [From a TagCollection of tags]
            > -
                  Run this XPath expression against this/these given node/nodes/document
 
 
        @return <TagCollection> - A TagCollection of matched tags

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __all__ = ('XPathExpression',)