class documentation
class LXMLTreeBuilder(HTMLTreeBuilder, LXMLTreeBuilderForXML): (source)
Undocumented
Method | default |
Find the default parser for the given encoding. |
Method | feed |
Run some incoming markup through some parsing process, populating the `BeautifulSoup` object in self.soup. |
Method | test |
See `TreeBuilder`. |
Constant | ALTERNATE |
Undocumented |
Class Variable | features |
Undocumented |
Class Variable | is |
Undocumented |
Instance Variable | parser |
Undocumented |
Inherited from HTMLTreeBuilder
:
Method | set |
Replace the declared encoding in a <meta> tag with a placeholder, to be substituted when the tag is output to a string. |
Constant | DEFAULT |
Undocumented |
Constant | DEFAULT |
Undocumented |
Constant | DEFAULT |
Undocumented |
Class Variable | block |
Undocumented |
Class Variable | empty |
Undocumented |
Inherited from LXMLTreeBuilderForXML
(via HTMLTreeBuilder
):
Method | __init__ |
Constructor. |
Method | close |
Undocumented |
Method | comment |
Handle comments as Comment objects. |
Method | data |
Undocumented |
Method | doctype |
Undocumented |
Method | end |
Undocumented |
Method | initialize |
Let the BeautifulSoup object know about the standard namespace mapping. |
Method | parser |
Instantiate an appropriate parser for the given encoding. |
Method | pi |
Undocumented |
Method | prepare |
Run any preliminary steps necessary to make incoming markup acceptable to the parser. |
Method | start |
Undocumented |
Constant | CHUNK |
Undocumented |
Constant | DEFAULT |
Undocumented |
Constant | DEFAULT |
Undocumented |
Constant | NAME |
Undocumented |
Instance Variable | active |
Undocumented |
Instance Variable | nsmaps |
Undocumented |
Instance Variable | processing |
Undocumented |
Instance Variable | soup |
Undocumented |
Method | _get |
Undocumented |
Method | _prefix |
Find the currently active prefix for the given namespace. |
Method | _register |
Let the BeautifulSoup object know about namespaces encountered while parsing the document. |
Instance Variable | _default |
Undocumented |
Inherited from TreeBuilder
(via HTMLTreeBuilder
, LXMLTreeBuilderForXML
):
Method | can |
Might a tag with this name be an empty-element tag? |
Method | reset |
Do any work necessary to reset the underlying parser for a new document. |
Constant | TRACKS |
Undocumented |
Constant | USE |
Undocumented |
Class Variable | picklable |
Undocumented |
Instance Variable | cdata |
Undocumented |
Instance Variable | preserve |
Undocumented |
Instance Variable | store |
Undocumented |
Instance Variable | string |
Undocumented |
Method | _replace |
When an attribute value is associated with a tag that can have multiple values for that attribute, convert the string value to a list of strings. |
Find the default parser for the given encoding. :param encoding: A string. :return: Either a parser object or a class, which will be instantiated with default arguments.
Run some incoming markup through some parsing process, populating the `BeautifulSoup` object in self.soup. This method is not implemented in TreeBuilder; it must be implemented in subclasses. :return: None.