Orbits
1
|
Namespaces | |
namespace | _base |
namespace | dom |
namespace | etree |
namespace | genshistream |
namespace | lxmletree |
namespace | pulldom |
Functions | |
def | getTreeWalker |
Variables | |
dictionary | treeWalkerCache = {} |
A collection of modules for iterating through different kinds of tree, generating tokens identical to those produced by the tokenizer module. To create a tree walker for a new type of tree, you need to do implement a tree walker object (called TreeWalker by convention) that implements a 'serialize' method taking a tree as sole argument and returning an iterator generating tokens.
def pip._vendor.html5lib.treewalkers.getTreeWalker | ( | treeType, | |
implementation = None , |
|||
kwargs | |||
) |
Get a TreeWalker class for various types of tree with built-in support treeType - the name of the tree type required (case-insensitive). Supported values are: "dom" - The xml.dom.minidom DOM implementation "pulldom" - The xml.dom.pulldom event stream "etree" - A generic walker for tree implementations exposing an elementtree-like interface (known to work with ElementTree, cElementTree and lxml.etree). "lxml" - Optimized walker for lxml.etree "genshi" - a Genshi stream implementation - (Currently applies to the "etree" tree type only). A module implementing the tree type e.g. xml.etree.ElementTree or cElementTree.
dictionary pip._vendor.html5lib.treewalkers.treeWalkerCache = {} |
Copyright 2014 Google Inc. All rights reserved.