Home | Trees | Indices | Help |
|
---|
|
|
|||
AncestorsIterator Iterates over the ancestors of an element (from parent to parent). |
|||
AttributeBasedElementClassLookup Checks an attribute of an Element and looks up the value in a class dictionary. |
|||
C14NError Error during C14N serialisation. |
|||
CommentBase All custom Comment classes must inherit from this one. |
|||
CustomElementClassLookup Element class lookup based on a subclass method. |
|||
DTD A DTD validator. |
|||
DTDError Base class for DTD errors. |
|||
DTDParseError Error while parsing a DTD. |
|||
DTDValidateError Error while validating an XML document with a DTD. |
|||
DocInfo Document information provided by parser and DTD. |
|||
DocumentInvalid Validation error. |
|||
ETCompatXMLParser An XML parser with an ElementTree compatible default setup. |
|||
ETXPath Special XPath class that supports the ElementTree {uri} notation for namespaces. |
|||
ElementBase All custom Element classes must inherit from this one. |
|||
ElementChildIterator Iterates over the children of an element. |
|||
ElementClassLookup Superclass of Element class lookups. |
|||
ElementDefaultClassLookup Element class lookup scheme that always returns the default Element class. |
|||
ElementDepthFirstIterator Iterates over an element and its sub-elements in document order (depth first pre-order). |
|||
ElementNamespaceClassLookup Element class lookup scheme that searches the Element class in the Namespace registry. |
|||
ElementTextIterator Iterates over the text content of a subtree. |
|||
EntityBase All custom Entity classes must inherit from this one. |
|||
Error | |||
ErrorDomains Libxml2 error domains Libxml2 error domains |
|||
ErrorLevels Libxml2 error levels Libxml2 error levels |
|||
ErrorTypes Libxml2 error types Libxml2 error types |
|||
FallbackElementClassLookup Superclass of Element class lookups with additional fallback. |
|||
HTMLParser The HTML parser. |
|||
LxmlError Main exception base class for lxml. |
|||
LxmlRegistryError Base class of lxml registry errors. |
|||
LxmlSyntaxError Base class for all syntax errors. |
|||
NamespaceRegistryError Error registering a namespace extension. |
|||
PIBase All custom Processing Instruction classes must inherit from this one. |
|||
ParseError Syntax error while parsing an XML document. |
|||
ParserBasedElementClassLookup Element class lookup based on the XML parser. |
|||
ParserError Internal lxml parser error. |
|||
PyErrorLog A global error log that connects to the Python stdlib logging package. |
|||
QName QName wrapper. |
|||
RelaxNG Turn a document into a Relax NG validator. |
|||
RelaxNGError Base class for RelaxNG errors. |
|||
RelaxNGParseError Error while parsing an XML document as RelaxNG. |
|||
RelaxNGValidateError Error while validating an XML document with a RelaxNG schema. |
|||
Resolver This is the base class of all resolvers. |
|||
Schematron A Schematron validator. |
|||
SchematronError Base class of all Schematron errors. |
|||
SchematronParseError Error while parsing an XML document as Schematron schema. |
|||
SchematronValidateError Error while validating an XML document with a Schematron schema. |
|||
SiblingsIterator Iterates over the siblings of an element. |
|||
TreeBuilder Parser target that builds a tree. |
|||
XIncludeError Error during XInclude processing. |
|||
XMLParser The XML parser. |
|||
XMLSchema Turn a document into an XML Schema validator. |
|||
XMLSchemaError Base class of all XML Schema errors |
|||
XMLSchemaParseError Error while parsing an XML document as XML Schema. |
|||
XMLSchemaValidateError Error while validating an XML document with an XML Schema. |
|||
XMLSyntaxError Syntax error while parsing an XML document. |
|||
XPath A compiled XPath expression that can be called on Elements and ElementTrees. |
|||
XPathDocumentEvaluator Create an XPath evaluator for an ElementTree. |
|||
XPathElementEvaluator Create an XPath evaluator for an element. |
|||
XPathError Base class of all XPath errors. |
|||
XPathEvalError Error during XPath evaluation. |
|||
XPathFunctionError Internal error looking up an XPath extension function. |
|||
XPathResultError Error handling an XPath result. |
|||
XPathSyntaxError | |||
XSLT Turn a document into an XSLT object. |
|||
XSLTAccessControl Access control for XSLT: reading/writing files, directories and network I/O. |
|||
XSLTApplyError Error running an XSL transformation. |
|||
XSLTError Base class of all XSLT errors. |
|||
XSLTExtensionError Error registering an XSLT extension. |
|||
XSLTParseError Error parsing a stylesheet document. |
|||
XSLTSaveError Error serialising an XSLT result. |
|||
_Attrib | |||
_AttribIterator Attribute iterator - for internal use only! |
|||
_BaseContext | |||
_BaseErrorLog | |||
_BaseParser | |||
_ClassNamespaceRegistry Dictionary-like registry for namespace implementation classes |
|||
_Comment | |||
_Document Internal base class to reference a libxml document. |
|||
_DomainErrorLog | |||
_Element Element class. |
|||
_ElementIterator | |||
_ElementStringResult | |||
_ElementTagMatcher | |||
_ElementTree | |||
_Entity | |||
_ErrorLog | |||
_ExceptionContext | |||
_ExsltRegExp | |||
_FeedParser | |||
_FileReaderContext | |||
_FilelikeWriter | |||
_FunctionNamespaceRegistry | |||
_IDDict A dictionary-like proxy class that mapps ID attributes to elements. |
|||
_InputDocument | |||
_IterparseContext | |||
_ListErrorLog Immutable base version of a list based error log. |
|||
_LogEntry | |||
_NamespaceRegistry Dictionary-like namespace registry |
|||
_ParserContext | |||
_ParserDictionaryContext | |||
_ParserSchemaValidationContext | |||
_ProcessingInstruction | |||
_PythonSaxParserTarget | |||
_ResolverContext | |||
_ResolverRegistry | |||
_RotatingErrorLog | |||
_SaxParserContext This class maps SAX2 events to method calls. |
|||
_SaxParserTarget | |||
_TargetParserContext This class maps SAX2 events to the ET parser target interface. |
|||
_TargetParserResult | |||
_TempStore | |||
_Validator Base class for XML validators. |
|||
_XPathContext | |||
_XPathEvaluatorBase | |||
_XPathFunctionNamespaceRegistry | |||
_XSLTContext | |||
_XSLTProcessingInstruction | |||
_XSLTResolverContext | |||
_XSLTResultTree | |||
__ContentOnlyElement | |||
iterparse Incremental parser. |
|||
iterwalk A tree walker that generates events from an existing tree as if it was parsing XML data with ``iterparse()``. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
DEBUG = 1
|
|||
LIBXML_COMPILED_VERSION =
|
|||
LIBXML_VERSION =
|
|||
LIBXSLT_COMPILED_VERSION =
|
|||
LIBXSLT_VERSION =
|
|||
LXML_VERSION =
|
|||
__pyx_capi__ =
|
|||
__version__ =
|
|
|
|
|
Build a dictionary of extension functions from the functions defined in a module or the methods of an object. As second argument, you can pass an additional mapping of attribute names to XPath function names, or a list of function names that should be taken. The ``ns`` keyword argument accepts a namespace URI for the XPath functions. |
|
Parses an HTML document from a string constant. This function can be used to embed "HTML literals" in Python code. To override the parser with a different ``HTMLParser`` you can pass it to the ``parser`` keyword argument. The ``base_url`` keyword argument allows to set the original base URL of the document to support relative Paths when looking up external entities (DTD, XInclude, ...). |
|
|
|
>>> root = etree.XML("<root><test/></root>") To override the parser with a different ``XMLParser`` you can pass it to the ``parser`` keyword argument. The ``base_url`` keyword argument allows to set the original base URL of the document to support relative Paths when looking up external entities (DTD, XInclude, ...). |
Parse the text and return a tuple (root node, ID dictionary). The root node is the same as returned by the XML() function. The dictionary contains string-element pairs. The dictionary keys are the values of ID attributes as defined by the DTD. The elements referenced by the ID are stored as dictionary values. Note that you must not modify the XML tree if you use the ID dictionary. The results are undefined. |
|
Creates an XPath evaluator for an ElementTree or an Element. The resulting object can be called with an XPath expression as argument and XPath variables provided as keyword arguments. Additional namespace declarations can be passed with the 'namespace' keyword argument. EXSLT regular expression support can be disabled with the 'regexp' boolean keyword (defaults to True). |
|
|
Parses an XML document from a string. To override the default parser with a different parser you can pass it to the ``parser`` keyword argument. The ``base_url`` keyword argument allows to set the original base URL of the document to support relative Paths when looking up external entities (DTD, XInclude, ...). |
Parses an XML document from a sequence of strings. To override the default parser with a different parser you can pass it to the ``parser`` keyword argument. |
Deprecated: please use get_default_parser instead. |
|
Parses the source into a tuple containing an ElementTree object and an ID dictionary. If no parser is provided as second argument, the default parser is used. Note that you must not modify the XML tree if you use the ID dictionary. The results are undefined. |
Deprecated: please use set_default_parser instead. |
Deprecated: use ``set_element_class_lookup(lookup)`` instead |
Set a default parser for the current thread. This parser is used globally whenever no parser is supplied to the various parse functions of the lxml API. If this function is called without a parser (or if it is None), the default parser is reset to the original configuration. Note that the pre-installed default parser is not thread-safe. Avoid the default parser in multi-threaded environments. You can create a separate parser for each thread explicitly or use a parser pool. |
Serialize an element to an encoded string representation of its XML tree. Defaults to ASCII encoding without XML declaration. This behaviour can be configured with the keyword arguments 'encoding' (string) and 'xml_declaration' (bool). Note that changing the encoding to a non UTF-8 compatible encoding will enable a declaration by default. The keyword argument 'pretty_print' (bool) enables formatted XML. The keyword argument 'method' selects the output method: 'xml', 'html' or plain 'text'. |
Serialize an element to an encoded string representation of its XML tree, stored in a list of partial strings. This is purely for ElementTree 1.3 compatibility. The result is a single string wrapped in a list. |
Serialize an element to the Python unicode representation of its XML tree. Note that the result does not carry an XML encoding declaration and is therefore not necessarily suited for serialization to byte streams without further treatment. The boolean keyword argument 'pretty_print' enables formatted XML. The keyword argument 'method' selects the output method: 'xml', 'html' or plain 'text'. |
Replace the global error log by an etree.PyErrorLog that uses the standard Python logging package. Note that this disables access to the global error log from exceptions. Parsers, XSLT etc. will continue to provide their normal local error log. |
|
__pyx_capi__
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Fri Jan 11 16:02:38 2008 | http://epydoc.sourceforge.net |