Module Expr Str Import alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body If BoolOpAnd Call NameLoad NameLoad Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr BinOpMod AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad Str Str Str Str body Expr Str If BoolOpAnd Call NameLoad NameLoad Str Call AttributeLoad NameLoad attr body For NameStore NameLoad body If CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body Return NameLoad If Call AttributeLoad NameLoad attr body If Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad If NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Return NameLoad Raise NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Slice ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore ListLoad If UnaryOpNot Call NameLoad NameLoad Call NameLoad ListLoad body Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad Str body Continue If CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Continue Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Return Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd NameLoad Str NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd NameLoad Str NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Str body Expr Str Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad While CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Num If BoolOpAnd Call NameLoad NameLoad Str CompareIsNot AttributeLoad NameLoad attr NameLoad body If NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign SubscriptStore NameLoad Slice Num AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str Str Num NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad Lambda arguments args NameParam defaults BoolOpAnd CompareIsNot Call NameLoad NameLoad Str NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad Lambda arguments args NameParam NameParam defaults NameLoad BoolOpAnd CompareIsNot Call NameLoad NameLoad Str NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If NameLoad body Return Call NameLoad NameLoad Lambda arguments args NameParam NameParam NameParam defaults NameLoad NameLoad BoolOpAnd Call AttributeLoad NameLoad attr NameLoad CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return Call NameLoad NameLoad Lambda arguments args NameParam NameParam defaults NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad Lambda arguments args NameParam NameParam defaults NameLoad CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad While NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad Str Str NameLoad decorator_list
N/A N/A 
A library for performing interesting tasks with DOM objects.
 N/A StringIO twisted.web microdom twisted.web.microdom getElementsByTagName escape unescape NodeLookupError N/A Exception N/A N/A N/A substitute N/A N/A request node subs N/A N/A N/A 
    Look through the given node's children for strings, and
    attempt to do string substitution with the given parameter.
     N/A child N/A node childNodes N/A N/A N/A N/A hasattr child nodeValue N/A child nodeValue N/A N/A N/A N/A child replaceData 0 N/A len N/A child nodeValue N/A N/A child nodeValue subs N/A N/A substitute request child subs N/A _get N/A N/A node nodeId nodeAttrs N/A N/A id class model pattern N/A N/A 
    (internal) Get a node with the specified C{nodeId} as any of the C{class},
    C{id} or C{pattern} attributes.
     N/A N/A N/A hasattr node hasAttributes N/A N/A node hasAttributes N/A N/A nodeAttr nodeAttrs N/A N/A N/A N/A str N/A N/A node getAttribute nodeAttr nodeId N/A N/A node N/A N/A N/A node hasChildNodes N/A N/A N/A hasattr N/A node childNodes length N/A N/A length N/A N/A node childNodes length N/A N/A length N/A len N/A node childNodes N/A childNum N/A range length N/A N/A result N/A _get N/A N/A node childNodes N/A childNum nodeId N/A result N/A N/A result N/A get N/A N/A node nodeId N/A N/A N/A 
    Get a node with the specified C{nodeId} as any of the C{class},
    C{id} or C{pattern} attributes. If there is no such node, raise
    L{NodeLookupError}.
     N/A result N/A _get node nodeId N/A result N/A N/A result N/A NodeLookupError nodeId N/A getIfExists N/A N/A node nodeId N/A N/A N/A 
    Get a node with the specified C{nodeId} as any of the C{class},
    C{id} or C{pattern} attributes.  If there is no such node, return
    C{None}.
     N/A N/A _get node nodeId N/A getAndClear N/A N/A node nodeId N/A N/A N/A Get a node with the specified C{nodeId} as any of the C{class},
    C{id} or C{pattern} attributes. If there is no such node, raise
    L{NodeLookupError}. Remove all child nodes before returning.
     N/A result N/A get node nodeId N/A result N/A N/A N/A clearNode result N/A result N/A clearNode N/A N/A node N/A N/A N/A 
    Remove all children from the given node.
     N/A N/A N/A node childNodes N/A N/A N/A locateNodes N/A N/A nodeList key value noNesting N/A 1 N/A N/A 
    Find subnodes in the given node where the given attribute
    has the given value.
     N/A returnList N/A N/A N/A N/A isinstance nodeList N/A type N/A N/A N/A N/A locateNodes N/A nodeList childNodes key value noNesting N/A childNode nodeList N/A N/A N/A N/A hasattr childNode getAttribute N/A N/A N/A N/A N/A str N/A N/A childNode getAttribute key value N/A N/A N/A N/A returnList append childNode N/A noNesting N/A N/A N/A N/A N/A returnList extend N/A locateNodes childNode key value noNesting N/A returnList N/A superSetAttribute N/A N/A node key value N/A N/A N/A N/A N/A hasattr node setAttribute N/A N/A N/A N/A N/A node setAttribute key value N/A N/A N/A node hasChildNodes N/A N/A child N/A node childNodes N/A N/A N/A superSetAttribute child key value N/A superPrependAttribute N/A N/A node key value N/A N/A N/A N/A N/A hasattr node setAttribute N/A N/A N/A old N/A N/A node getAttribute key N/A old N/A N/A N/A N/A node setAttribute key N/A N/A value / old N/A N/A N/A N/A node setAttribute key value N/A N/A N/A node hasChildNodes N/A N/A child N/A node childNodes N/A N/A N/A superPrependAttribute child key value N/A superAppendAttribute N/A N/A node key value N/A N/A N/A N/A N/A hasattr node setAttribute N/A N/A N/A old N/A N/A node getAttribute key N/A old N/A N/A N/A N/A node setAttribute key N/A N/A old / value N/A N/A N/A N/A node setAttribute key value N/A N/A N/A node hasChildNodes N/A N/A child N/A node childNodes N/A N/A N/A superAppendAttribute child key value N/A gatherTextNodes N/A N/A iNode dounescape joinWith N/A 0 N/A N/A Visit each child node and collect its text data, if any, into a string.
For example::
    >>> doc=microdom.parseString('<a>1<b>2<c>3</c>4</b></a>')
    >>> gatherTextNodes(doc.documentElement)
    '1234'
With dounescape=1, also convert entities back into normal characters.
@return: the gathered nodes as a single string
@rtype: str
 N/A gathered N/A N/A gathered_append N/A gathered append N/A slice N/A iNode N/A N/A N/A len slice 0 N/A N/A c N/A N/A slice pop 0 N/A N/A N/A hasattr c nodeValue N/A N/A c nodeValue None N/A N/A dounescape N/A N/A val N/A unescape N/A c nodeValue N/A N/A val N/A c nodeValue N/A N/A gathered_append val N/A N/A slice N/A 0 N/A c childNodes N/A N/A N/A joinWith join gathered N/A RawText N/A N/A microdom Text N/A N/A This is an evil and horrible speed hack. Basically, if you have a big
    chunk of XML that you want to insert into the DOM, but you don't want to
    incur the cost of parsing it, you can construct one of these and insert it
    into the DOM. This will most certainly only work with microdom as the API
    for converting nodes to xml is different in every DOM implementation.

    This could be improved by making this class a Lazy parser, so if you
    inserted this into the DOM and then later actually tried to mutate this
    node, it would be parsed then.
     writexml N/A N/A self writer indent addindent newl strip nsprefixes namespace N/A 0 None None N/A N/A N/A N/A writer write N/A %s%s%s N/A indent N/A self data newl N/A N/A findNodes N/A N/A parent matcher accum N/A None N/A N/A N/A accum None N/A N/A accum N/A N/A N/A N/A N/A parent hasChildNodes N/A N/A accum N/A child N/A parent childNodes N/A N/A N/A matcher child N/A N/A N/A N/A accum append child N/A N/A findNodes child matcher accum N/A accum N/A findNodesShallowOnMatch N/A N/A parent matcher recurseMatcher accum N/A None N/A N/A N/A accum None N/A N/A accum N/A N/A N/A N/A N/A parent hasChildNodes N/A N/A accum N/A child N/A parent childNodes N/A N/A N/A matcher child N/A N/A N/A N/A accum append child N/A N/A recurseMatcher child N/A N/A N/A findNodesShallowOnMatch child matcher recurseMatcher accum N/A accum N/A findNodesShallow N/A N/A parent matcher accum N/A None N/A N/A N/A accum None N/A N/A accum N/A N/A N/A N/A N/A parent hasChildNodes N/A N/A accum N/A child N/A parent childNodes N/A N/A N/A matcher child N/A N/A N/A N/A accum append child N/A N/A N/A findNodes child matcher accum N/A accum N/A findElementsWithAttributeShallow N/A N/A parent attribute N/A N/A N/A 
    Return an iterable of the elements which are direct children of C{parent}
    and which have the C{attribute} attribute.
     N/A N/A findNodesShallow parent N/A N/A N/A n N/A N/A N/A N/A getattr n tagName None None N/A N/A n hasAttribute attribute N/A findElements N/A N/A parent matcher N/A N/A N/A 
    Return an iterable of the elements which are children of C{parent} for
    which the predicate C{matcher} returns true.
     N/A N/A findNodes parent N/A N/A N/A n matcher N/A matcher N/A N/A N/A getattr n tagName None None N/A matcher n N/A findElementsWithAttribute N/A N/A parent attribute value N/A None N/A N/A value N/A N/A N/A findElements parent N/A N/A N/A n attribute value N/A attribute value N/A N/A N/A n hasAttribute attribute N/A N/A N/A n getAttribute attribute value N/A N/A N/A findElements parent N/A N/A N/A n attribute N/A attribute N/A N/A n hasAttribute attribute N/A findNodesNamed N/A N/A parent name N/A N/A N/A N/A findNodes parent N/A N/A N/A n name N/A name N/A N/A n nodeName name N/A writeNodeData N/A N/A node oldio N/A N/A N/A subnode N/A node childNodes N/A N/A N/A hasattr subnode data N/A N/A N/A N/A oldio write N/A subnode data N/A N/A N/A writeNodeData subnode oldio N/A getNodeText N/A N/A node N/A N/A N/A oldio N/A N/A StringIO StringIO N/A N/A writeNodeData node oldio N/A N/A N/A oldio getvalue N/A getParents N/A N/A node N/A N/A N/A l N/A N/A node N/A N/A N/A N/A l append node N/A node N/A node parentNode N/A l N/A namedChildren N/A N/A parent nodeName N/A N/A N/A namedChildren(parent, nodeName) -> children (not descendants) of parent
    that have tagName == nodeName
     N/A N/A n N/A n N/A parent childNodes N/A N/A getattr n tagName nodeName N/A