[hide private]
[frames] | no frames]

[ Module Hierarchy | Class Hierarchy ]

# Class Hierarchy

- UserDict.DictMixin
  - lxml.html.FieldsDict
- difflib.SequenceMatcher: SequenceMatcher is a flexible class for comparing pairs of sequences of any type, so long as the sequence elements are hashable.
  - lxml.html.diff.InsensitiveSequenceMatcher: Acts like SequenceMatcher, but tries not to find very small equal blocks amidst large spans of changes
- doctest.OutputChecker: A class used to check the whether the actual output from a doctest example matches the expected output.
  - lxml.doctestcompare.LXMLOutputChecker
    - lxml.doctestcompare.LHTMLOutputChecker
- lxml.etree.ErrorDomains: Libxml2 error domains Libxml2 error domains
- lxml.etree.ErrorLevels: Libxml2 error levels Libxml2 error levels
- lxml.etree.ErrorTypes: Libxml2 error types Libxml2 error types
- lxml.html.diff.DEL_END
- lxml.html.diff.DEL_START
- lxml.html.tests.test_feedparser_data.DummyInput
- lxml.tests.common_imports.LargeFileLike
- lxml.tests.common_imports.SillyFileLike
- object: The most base type
  - lxml.html.clean.Cleaner: Instances cleans the document of each of the possible offending elements.
  - lxml.etree._AttribIterator: Attribute iterator - for internal use only!
  - elementtree.ElementTree._SimpleElementPath
  - basestring: Type basestring cannot be instantiated; it is the base for str and unicode.
    - unicode: unicode(string [, encoding[, errors]]) -> object
      - lxml.html.diff.token: Represents a diffable token, generally a word that is displayed to the user.
        - lxml.html.diff.tag_token: Represents a token that is actually a tag.
        - lxml.html.diff.href_token: Represents the href in an anchor tag.
      - lxml.cssselect._UniToken
        - lxml.cssselect.Symbol
        - lxml.cssselect.String
        - lxml.cssselect.Token
  - lxml.etree._Validator: Base class for XML validators.
    - lxml.etree.XMLSchema: Turn a document into an XML Schema validator.
    - lxml.etree.RelaxNG: Turn a document into a Relax NG validator.
    - lxml.etree.DTD: A DTD validator.
    - lxml.etree.Schematron: A Schematron validator.
  - lxml.html._MethodFunc: An object that represents a method on an element as a function; the function takes either an element or an HTML string.
  - lxml.html.setmixin.SetMixin: Mix-in for sets.
    - lxml.html.MultipleSelectOptions: Represents all the selected options in a ``<select multiple>`` element.
    - lxml.html.CheckboxValues: Represents the values of the checked checkboxes in a group of checkboxes with the same name.
  - lxml.etree.ElementTextIterator: Iterates over the text content of a subtree.
  - lxml.etree.DocInfo: Document information provided by parser and DTD.
  - lxml.etree._BaseContext
    - lxml.etree._XSLTContext
    - lxml.etree._XPathContext
  - elementtree.ElementTree._IterParseIterator
  - lxml.html.InputMixin: Mix-in for all input elements (input, select, and textarea)
    - lxml.html.SelectElement: ``<select>`` element.
    - lxml.html.InputElement: Represents an ``<input>`` element.
    - lxml.html.TextareaElement: ``<textarea>`` element.
  - lxml.etree.Resolver: This is the base class of all resolvers.
  - lxml.cssselect.Or
  - lxml.etree._Element: Element class.
    - lxml.etree.ElementBase: All custom Element classes must inherit from this one.
      - lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.default_class
      - lxml.html.HtmlElement
        - lxml.html.SelectElement: ``<select>`` element.
        - lxml.html.InputElement: Represents an ``<input>`` element.
        - lxml.html.LabelElement: Represents a ``<label>`` element.
        - lxml.html.FormElement: Represents a <form> element.
        - lxml.html.TextareaElement: ``<textarea>`` element.
      - lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.maeh_class
      - lxml.objectify.ObjectifiedElement: Main XML Element class.
        - lxml.objectify.ObjectifiedDataElement: This is the base class for all data type Elements.
          - lxml.objectify.StringElement: String data class.
          - lxml.objectify.NumberElement
            - lxml.objectify.LongElement
            - lxml.objectify.IntElement
            - lxml.objectify.FloatElement
          - lxml.objectify.BoolElement: Boolean type base on string values: 'true' or 'false'.
          - lxml.objectify.NoneElement
      - lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase.bluff_class
    - lxml.etree.__ContentOnlyElement
      - lxml.etree._Entity
        - lxml.etree.EntityBase: All custom Entity classes must inherit from this one.
          - lxml.html.HtmlEntity
      - lxml.etree._Comment
        - lxml.etree.CommentBase: All custom Comment classes must inherit from this one.
          - lxml.html.HtmlComment
      - lxml.etree._ProcessingInstruction
        - lxml.etree.PIBase: All custom Processing Instruction classes must inherit from this one.
          - lxml.html.HtmlProcessingInstruction
          - lxml.etree._XSLTProcessingInstruction
  - lxml.cssselect.Pseudo: Represents selector:ident
  - lxml.etree.XSLTAccessControl: Access control for XSLT: reading/writing files, directories and network I/O.
  - lxml.cssselect.TokenStream
  - lxml.etree._Attrib
  - lxml.etree._SaxParserTarget
    - lxml.etree._PythonSaxParserTarget
    - lxml.etree.TreeBuilder: Parser target that builds a tree.
  - lxml.etree._InputDocument
  - elementtree.ElementTree.Element
  - lxml.objectify.ElementMaker
  - lxml.cssselect.Attrib: Represents selector[namespace|attrib operator value]
  - lxml.etree.ElementClassLookup: Superclass of Element class lookups.
    - lxml.etree.ElementDefaultClassLookup: Element class lookup scheme that always returns the default Element class.
    - lxml.objectify.ObjectifyElementClassLookup: Element class lookup method that uses the objectify classes.
    - lxml.etree.FallbackElementClassLookup: Superclass of Element class lookups with additional fallback.
      - lxml.etree.AttributeBasedElementClassLookup: Checks an attribute of an Element and looks up the value in a class dictionary.
      - lxml.etree.ElementNamespaceClassLookup: Element class lookup scheme that searches the Element class in the Namespace registry.
      - lxml.pyclasslookup.PythonElementClassLookup: Element class lookup based on a subclass method.
      - lxml.etree.ParserBasedElementClassLookup: Element class lookup based on the XML parser.
      - lxml.etree.CustomElementClassLookup: Element class lookup based on a subclass method.
        - lxml.html.HtmlElementClassLookup: A lookup scheme for HTML Element classes.
  - lxml.builder.ElementMaker: Element generator factory.
  - lxml.cssselect.CombinedSelector
  - lxml.etree._ExceptionContext
    - lxml.etree._ResolverContext
      - lxml.etree._XSLTResolverContext
      - lxml.etree._ParserContext
        - lxml.etree._SaxParserContext: This class maps SAX2 events to method calls.
          - lxml.etree._TargetParserContext: This class maps SAX2 events to the ET parser target interface.
        - lxml.etree._IterparseContext
  - lxml.cssselect.Hash: Represents selector#id
  - lxml.sax.ElementTreeProducer: Produces SAX events for an element and children.
  - lxml.etree._XPathEvaluatorBase
    - lxml.etree.XPathElementEvaluator: Create an XPath evaluator for an element.
      - lxml.etree.XPathDocumentEvaluator: Create an XPath evaluator for an ElementTree.
    - lxml.etree.XPath: A compiled XPath expression that can be called on Elements and ElementTrees.
      - lxml.etree.ETXPath: Special XPath class that supports the ElementTree {uri} notation for namespaces.
      - lxml.cssselect.CSSSelector
  - lxml.etree._ExsltRegExp
  - lxml.etree._IDDict: A dictionary-like proxy class that mapps ID attributes to elements.
  - lxml.cssselect.Class: Represents selector.class_name
  - lxml.etree._ElementTree
    - lxml.etree._XSLTResultTree
  - list: list() -> new list list(sequence) -> new list initialized from sequence's items
    - lxml.html.RadioGroup: This object represents several ``<input type=radio>`` elements that have the same name.
    - lxml.html.CheckboxGroup: Represents a group of checkboxes (``<input type=checkbox>``) that have the same name.
  - lxml.etree._ParserDictionaryContext
  - elementtree.ElementTree.ElementTree
  - elementtree.ElementTree.TreeBuilder
  - lxml.pyclasslookup._ElementProxy
  - lxml.html.HtmlMixin
    - lxml.html.HtmlComment
    - lxml.html.HtmlElement
      - lxml.html.SelectElement: ``<select>`` element.
      - lxml.html.InputElement: Represents an ``<input>`` element.
      - lxml.html.LabelElement: Represents a ``<label>`` element.
      - lxml.html.FormElement: Represents a <form> element.
      - lxml.html.TextareaElement: ``<textarea>`` element.
    - lxml.html.HtmlEntity
    - lxml.html.HtmlProcessingInstruction
  - lxml.etree._BaseParser
    - lxml.etree.iterparse: Incremental parser.
    - lxml.etree._FeedParser
      - lxml.etree.HTMLParser: The HTML parser.
        - lxml.html.HTMLParser
      - lxml.etree.XMLParser: The XML parser.
        - lxml.etree.ETCompatXMLParser: An XML parser with an ElementTree compatible default setup.
  - lxml.doctestcompare._RestoreChecker
  - lxml.etree._NamespaceRegistry: Dictionary-like namespace registry
    - lxml.etree._FunctionNamespaceRegistry
      - lxml.etree._XPathFunctionNamespaceRegistry
    - lxml.etree._ClassNamespaceRegistry: Dictionary-like registry for namespace implementation classes
  - lxml.etree.XSLT: Turn a document into an XSLT object.
  - lxml.etree._FilelikeWriter
  - lxml.cssselect.Element: Represents namespace|element
  - lxml.etree.QName: QName wrapper.
  - lxml.sax.ElementTreeContentHandler: Build an lxml ElementTree from SAX events.
  - lxml.etree._BaseErrorLog
    - lxml.etree._ListErrorLog: Immutable base version of a list based error log.
      - lxml.etree._ErrorLog
        - lxml.etree._RotatingErrorLog
        - lxml.etree._DomainErrorLog
    - lxml.etree.PyErrorLog: A global error log that connects to the Python stdlib logging package.
  - exceptions.BaseException: Common base class for all exceptions
    - exceptions.Exception: Common base class for all non-exit exceptions.
      - lxml.etree.Error
        - lxml.etree.LxmlError: Main exception base class for lxml.
          - lxml.etree.DocumentInvalid: Validation error.
          - lxml.etree.LxmlSyntaxError: Base class for all syntax errors.
            - lxml.etree.ParseError: Syntax error while parsing an XML document.
              - lxml.etree.XMLSyntaxError: Syntax error while parsing an XML document.
            - lxml.ElementInclude.FatalIncludeError
            - lxml.etree.XPathSyntaxError
          - lxml.etree.XPathError: Base class of all XPath errors.
            - lxml.etree.XPathSyntaxError
            - lxml.etree.XPathEvalError: Error during XPath evaluation.
              - lxml.etree.XPathResultError: Error handling an XPath result.
              - lxml.etree.XPathFunctionError: Internal error looking up an XPath extension function.
          - lxml.etree.C14NError: Error during C14N serialisation.
          - lxml.etree.XMLSchemaError: Base class of all XML Schema errors
            - lxml.etree.XMLSchemaValidateError: Error while validating an XML document with an XML Schema.
            - lxml.etree.XMLSchemaParseError: Error while parsing an XML document as XML Schema.
          - lxml.sax.SaxError: General SAX error.
          - lxml.etree.RelaxNGError: Base class for RelaxNG errors.
            - lxml.etree.RelaxNGValidateError: Error while validating an XML document with a RelaxNG schema.
            - lxml.etree.RelaxNGParseError: Error while parsing an XML document as RelaxNG.
          - lxml.etree.DTDError: Base class for DTD errors.
            - lxml.etree.DTDValidateError: Error while validating an XML document with a DTD.
            - lxml.etree.DTDParseError: Error while parsing a DTD.
          - lxml.etree.XSLTError: Base class of all XSLT errors.
            - lxml.etree.XSLTExtensionError: Error registering an XSLT extension.
            - lxml.etree.XSLTSaveError: Error serialising an XSLT result.
            - lxml.etree.XSLTApplyError: Error running an XSL transformation.
            - lxml.etree.XSLTParseError: Error parsing a stylesheet document.
          - lxml.etree.ParserError: Internal lxml parser error.
          - lxml.etree.SchematronError: Base class of all Schematron errors.
            - lxml.etree.SchematronValidateError: Error while validating an XML document with a Schematron schema.
            - lxml.etree.SchematronParseError: Error while parsing an XML document as Schematron schema.
          - lxml.etree.LxmlRegistryError: Base class of lxml registry errors.
            - lxml.etree.NamespaceRegistryError: Error registering a namespace extension.
          - lxml.etree.XIncludeError: Error during XInclude processing.
      - lxml.html.diff.NoDeletes: Raised when the document no longer contains any pending deletes (DEL_START/DEL_END)
      - exceptions.StandardError: Base class for all standard Python exceptions that do not represent interpreter exiting.
        - exceptions.LookupError: Base class for lookup errors.
          - lxml.html.formfill.FormNotFound: Raised when no form can be found
        - exceptions.RuntimeError: Unspecified run-time error.
          - lxml.cssselect.ExpressionError
        - exceptions.AssertionError: Assertion failed.
        - exceptions.SyntaxError: Invalid syntax.
          - lxml.cssselect.SelectorSyntaxError
          - lxml.etree.LxmlSyntaxError: Base class for all syntax errors.
            - lxml.etree.ParseError: Syntax error while parsing an XML document.
              - lxml.etree.XMLSyntaxError: Syntax error while parsing an XML document.
            - lxml.ElementInclude.FatalIncludeError
            - lxml.etree.XPathSyntaxError
          - elementtree.ElementTree.ParseError
      - lxml.etree._TargetParserResult
  - lxml.etree._FileReaderContext
  - lxml.html.formfill.DefaultErrorCreator
  - lxml.cssselect.XPathExpr
    - lxml.cssselect.XPathExprOr: Represents on |'d expressions.
  - lxml.etree._TempStore
  - lxml.etree._ResolverRegistry
  - lxml.etree._ElementTagMatcher
    - lxml.etree.ElementDepthFirstIterator: Iterates over an element and its sub-elements in document order (depth first pre-order).
    - lxml.etree._ElementIterator
      - lxml.etree.ElementChildIterator: Iterates over the children of an element.
      - lxml.etree.AncestorsIterator: Iterates over the ancestors of an element (from parent to parent).
      - lxml.etree.SiblingsIterator: Iterates over the siblings of an element.
  - unittest.TestCase: A class whose instances are single test cases.
    - lxml.tests.test_errors.ErrorTestCase
    - lxml.tests.test_css.CSSTestCase
    - lxml.tests.test_elementtree.ETreeTestCaseBase
      - lxml.tests.test_elementtree.ElementTreeTestCase
      - lxml.tests.test_elementtree.ETreeTestCase
    - lxml.tests.test_unicode.UnicodeTestCase
    - lxml.tests.test_io.IOTestCaseBase: (c)ElementTree compatibility for IO functions/methods
      - lxml.tests.test_io.ElementTreeIOTestCase
      - lxml.tests.test_io.ETreeIOTestCase
    - lxml.html.tests.test_feedparser_data.FeedTestCase
    - lxml.tests.common_imports.HelperTestCase
      - lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase
      - lxml.tests.test_pyclasslookup.PyClassLookupTestCase: Test cases for the lxml.pyclasslookup class lookup mechanism.
      - lxml.tests.test_xslt.ETreeXSLTTestCase: XPath tests etree
      - lxml.tests.test_etree.ETreeOnlyTestCase: Tests only for etree, not ElementTree
      - lxml.tests.test_relaxng.ETreeRelaxNGTestCase
      - lxml.tests.test_dtd.ETreeDtdTestCase
      - lxml.tests.test_htmlparser.HtmlParserTestCase: HTML parser test cases
      - lxml.tests.test_xpathevaluator.ETreeXPathTestCase: XPath tests etree
      - lxml.tests.test_schematron.ETreeSchematronTestCase
      - lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase
      - lxml.tests.test_sax.ETreeSaxTestCase
      - lxml.tests.test_etree.XIncludeTestCase
        - lxml.tests.test_etree.ElementIncludeTestCase
        - lxml.tests.test_etree.ETreeXIncludeTestCase
      - lxml.tests.test_etree.ETreeC14NTestCase
      - lxml.tests.test_objectify.ObjectifyTestCase: Test cases for lxml.objectify
      - lxml.tests.test_classlookup.ClassLookupTestCase: Test cases for different Element class lookup mechanisms.
      - lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase: Tests for the ETXPath class
      - lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase: Tests for the XPath class
  - lxml.objectify._StringValueSetter
  - lxml.etree.iterwalk: A tree walker that generates events from an existing tree as if it was parsing XML data with ``iterparse()``.
  - lxml.objectify._ObjectifyElementMakerCaller
  - lxml.cssselect.Function: Represents selector:name(expr)
  - elementtree.ElementTree.XMLParser
  - elementtree.ElementTree.QName
  - lxml.html.InputGetter: An accessor that represents all the input fields in a form.
  - lxml.objectify.PyType: User defined type.
  - lxml.objectify.ObjectPath: Immutable object that represents a compiled object path.
  - lxml.etree._LogEntry
  - lxml.etree._Document: Internal base class to reference a libxml document.
- xml.sax.handler.ContentHandler: Interface for receiving logical document content events.
  - lxml.sax.ElementTreeContentHandler: Build an lxml ElementTree from SAX events.