Module Expr Str ImportFrom alias Import alias ImportFrom alias alias alias alias alias alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias alias Assign NameStore ListLoad Str Str Str Str Str Str Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Str If BoolOpAnd CompareNotEq NameLoad Str UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Str Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Lambda arguments args NameParam defaults NameLoad If CompareIs NameLoad NameLoad body Return Call NameLoad Call AttributeLoad Str attr Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults Str kwarg body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad Index Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str Str Assign NameStore TupleLoad Str Str Str Assign NameStore TupleLoad Str Str Str Assign NameStore NameLoad Assign NameStore TupleLoad Str NameLoad NameLoad Assign NameStore TupleLoad Str Str Str Assign NameStore TupleLoad Str Str Str Assign NameStore TupleLoad Str Str Str Assign NameStore NameLoad Assign NameStore TupleLoad Str Str Str Assign NameStore TupleLoad Str Str Str Assign NameStore TupleLoad Str Str Str Assign NameStore TupleLoad Str Str Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr ListLoad Call NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameStore NameLoad Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameLoad body If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad Assign NameStore ListLoad Str NameLoad For TupleStore NameStore NameStore NameLoad body AugAssignAdd NameStore ListLoad Str NameLoad Str Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr BoolOpOr BoolOpAnd CompareIs NameLoad NameLoad Str Str Expr Yield Call NameLoad Call AttributeLoad Str attr NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad BinOpMod Str NameLoad orelse If CompareIs NameLoad NameLoad body If NameLoad body Expr Yield NameLoad orelse Expr Yield Call NameLoad NameLoad keyword NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad BinOpMod Str NameLoad orelse If BoolOpAnd CompareIs NameLoad NameLoad UnaryOpNot NameLoad body Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore ListLoad BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareNotEq NameLoad Num body Assign NameStore BoolOpOr BoolOpAnd NameLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Yield Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore NameLoad orelse If BoolOpAnd CompareIs NameLoad NameLoad UnaryOpNot NameLoad body Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore ListLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse If NameLoad body Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Yield BinOpMod Call NameLoad Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad NameLoad Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad Str Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad Str Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad BinOpMod Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Call NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore BoolOpOr NameLoad Dict Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameStore NameLoad Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameLoad body If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad Assign NameStore ListLoad Str NameLoad For TupleStore NameStore NameStore NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore NameLoad orelse If BoolOpAnd CompareEq NameLoad Str CompareNotIn Str NameLoad body AugAssignAdd NameStore ListLoad Str Call NameLoad NameLoad Str orelse If CompareEq NameLoad Str body Continue AugAssignAdd NameStore ListLoad Str NameLoad Str Call NameLoad NameLoad Str If CompareIs NameLoad NameLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Expr Yield Call NameLoad Call AttributeLoad Str attr NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad BinOpMod Str NameLoad orelse If CompareIs NameLoad NameLoad body If NameLoad body Expr Yield NameLoad orelse Expr Yield Call NameLoad NameLoad keyword NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad BinOpMod Str NameLoad orelse If BoolOpAnd CompareIs NameLoad NameLoad UnaryOpNot NameLoad body Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore ListLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse If NameLoad body Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Yield BinOpMod Call NameLoad Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad NameLoad Assign NameStore NameLoad orelse If BoolOpAnd CompareIs NameLoad NameLoad UnaryOpNot NameLoad UnaryOpNot NameLoad body Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore ListLoad BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareNotEq NameLoad Num body Assign NameStore BoolOpOr BoolOpAnd NameLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Yield Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad Str Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad Str Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad BinOpMod Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Call NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Dict Str Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameLoad body If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad Assign NameStore ListLoad Str NameLoad For TupleStore NameStore NameStore NameLoad body If CompareIn NameLoad NameLoad body If NameLoad body AugAssignAdd NameStore ListLoad Str NameLoad orelse If CompareIn Str NameLoad body If BoolOpAnd CompareEq NameLoad Str CompareNotIn Str NameLoad body AugAssignAdd NameStore ListLoad Str Call NameLoad NameLoad Str orelse If CompareNotEq NameLoad Str body AugAssignAdd NameStore ListLoad Str NameLoad Str Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Yield Call NameLoad Call AttributeLoad Str attr NameLoad If CompareIn NameLoad NameLoad body Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad BinOpMod Str NameLoad Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body If NameLoad body Expr Yield NameLoad orelse Expr Yield Call NameLoad NameLoad keyword NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad BinOpMod Str NameLoad orelse If BoolOpAnd CompareIs NameLoad NameLoad UnaryOpNot NameLoad body Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore ListLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse If NameLoad body Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Yield BinOpMod Call NameLoad Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad NameLoad Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Expr Yield Call NameLoad BinOpMod Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body If CompareIs SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpAnd NameLoad CompareIs Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Yield Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore TupleLoad NameLoad NameLoad NameLoad For NameStore NameLoad body If CompareIs SubscriptLoad NameLoad Index Num NameLoad body If CompareIs SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore TupleLoad NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Yield NameLoad Continue orelse Expr Yield NameLoad If CompareIsNot SubscriptLoad NameLoad Index Num NameLoad body Expr Yield NameLoad Assign NameStore NameLoad decorator_list decorator_list Assign NameStore AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Dict AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad ListComp TupleLoad NameLoad ListLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict AttributeLoad NameLoad attr ListLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad ListLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad ListLoad attr NameLoad decorator_list Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad BinOpMod Str BoolOpOr BoolOpAnd NameLoad BinOpMod Str NameLoad Str NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num While Num body AugAssignAdd NameStore Num Expr Yield BinOpMod Str NameLoad decorator_list Assign NameStore AttributeLoad Call NameLoad attr For TupleStore NameStore NameStore NameStore NameLoad body If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse Expr Call NameLoad TupleLoad Str NameLoad Expr Call NameLoad Str NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If NameLoad body If CompareNotIn NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad TupleLoad BinOpMod Str NameLoad NameLoad orelse Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Yield TupleLoad NameLoad TupleLoad NameLoad Call NameLoad BinOpAdd NameLoad NameLoad NameLoad Delete SubscriptDel NameLoad Slice orelse If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Yield TupleLoad NameLoad NameLoad NameLoad orelse If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad If CompareNotIn NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Index Num Expr Call NameLoad Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad orelse If CompareIs NameLoad NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Delete SubscriptDel NameLoad Index NameLoad If BoolOpOr CompareNotIn NameLoad NameLoad CompareNotEq NameLoad SubscriptLoad NameLoad Index Num body Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Delete SubscriptDel NameLoad Index NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Yield TupleLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad SubscriptLoad NameLoad Index Str AttributeLoad Call AttributeLoad NameLoad attr Str attr AttributeLoad Call AttributeLoad NameLoad attr Str attr body Assign NameStore AttributeLoad Call NameLoad Str attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad ListLoad TupleLoad NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body If NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad orelse If NameLoad body If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call NameLoad NameLoad keyword NameLoad Delete SubscriptDel NameLoad Slice orelse Assign NameStore Call NameLoad Call NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Str Call NameLoad Str NameLoad Expr Yield TupleLoad NameLoad Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad If BoolOpOr NameLoad BoolOpOr CompareIn NameLoad NameLoad CompareEq Call AttributeLoad NameLoad attr NameLoad Str body AugAssignAdd NameStore Num If BoolOpAnd UnaryOpNot NameLoad CompareIn NameLoad NameLoad body Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Assign NameStore NameLoad If NameLoad body AugAssignSub NameStore Num orelse If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Assign NameStore NameLoad If NameLoad body Expr Yield TupleLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad TupleLoad NameLoad Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad For TupleStore NameStore NameStore NameStore NameLoad body If UnaryOpNot NameLoad body Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Expr Yield TupleLoad NameLoad NameLoad NameLoad Expr Yield AttributeLoad NameLoad attr Continue Expr Yield AttributeLoad NameLoad attr Expr Yield TupleLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Yield AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A This module provides different kinds of serialization methods for XML event
streams.
 itertools chain N/A re genshi.core escape Attrs Markup Namespace QName StreamEventKind genshi.core START END TEXT XML_DECL DOCTYPE START_NS END_NS START_CDATA END_CDATA PI COMMENT XML_NAMESPACE N/A __all__ N/A encode get_serializer DocType XMLSerializer XHTMLSerializer HTMLSerializer TextSerializer N/A __docformat__ restructuredtext en encode N/A N/A iterator method encoding out N/A xml utf-8 None N/A N/A Encode serializer output into a string.
    
    :param iterator: the iterator returned from serializing a stream (basically
                     any iterator that yields unicode objects)
    :param method: the serialization method; determines how characters not
                   representable in the specified encoding are treated
    :param encoding: how the output string should be encoded; if set to `None`,
                     this method returns a `unicode` object
    :param out: a file-like object that the output should be written to
                instead of being returned as one big string; note that if
                this is a file or socket (or similar), the `encoding` must
                not be `None` (that is, the output must be encoded)
    :return: a `str` or `unicode` object (depending on the `encoding`
             parameter), or `None` if the `out` parameter is provided
    
    :since: version 0.4.1
    :note: Changed in 0.5: added the `out` parameter
     N/A N/A encoding None N/A N/A errors replace N/A N/A N/A method text N/A N/A isinstance method TextSerializer N/A N/A errors xmlcharrefreplace N/A _encode N/A N/A N/A string N/A N/A N/A string encode encoding errors N/A N/A _encode N/A N/A N/A string N/A string N/A N/A out None N/A N/A N/A _encode N/A N/A join N/A list iterator N/A chunk iterator N/A N/A N/A N/A out write N/A _encode chunk N/A get_serializer N/A N/A method N/A xml kwargs N/A N/A Return a serializer object for the given method.
    
    :param method: the serialization method; can be either "xml", "xhtml",
                   "html", "text", or a custom serializer class

    Any additional keyword arguments are passed to the serializer, and thus
    depend on the `method` parameter value.
    
    :see: `XMLSerializer`, `XHTMLSerializer`, `HTMLSerializer`, `TextSerializer`
    :since: version 0.4.1
     N/A N/A isinstance method basestring N/A N/A method N/A N/A xml xhtml html text XMLSerializer XHTMLSerializer HTMLSerializer TextSerializer N/A N/A N/A method lower N/A N/A method kwargs N/A DocType N/A object N/A N/A Defines a number of commonly used DOCTYPE declarations as constants. N/A HTML_STRICT N/A html -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd N/A HTML_TRANSITIONAL N/A html -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd N/A HTML_FRAMESET N/A html -//W3C//DTD HTML 4.01 Frameset//EN http://www.w3.org/TR/html4/frameset.dtd N/A HTML HTML_STRICT N/A HTML5 N/A html None None N/A XHTML_STRICT N/A html -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd N/A XHTML_TRANSITIONAL N/A html -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd N/A XHTML_FRAMESET N/A html -//W3C//DTD XHTML 1.0 Frameset//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd N/A XHTML XHTML_STRICT N/A XHTML11 N/A html -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd N/A SVG_FULL N/A svg -//W3C//DTD SVG 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd N/A SVG_BASIC N/A svg -//W3C//DTD SVG Basic 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd N/A SVG_TINY N/A svg -//W3C//DTD SVG Tiny 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd N/A SVG SVG_FULL get N/A N/A cls name N/A N/A N/A Return the ``(name, pubid, sysid)`` tuple of the ``DOCTYPE``
        declaration for the specified name.
        
        The following names are recognized in this version:
         * "html" or "html-strict" for the HTML 4.01 strict DTD
         * "html-transitional" for the HTML 4.01 transitional DTD
         * "html-frameset" for the HTML 4.01 frameset DTD
         * "html5" for the ``DOCTYPE`` proposed for HTML5
         * "xhtml" or "xhtml-strict" for the XHTML 1.0 strict DTD
         * "xhtml-transitional" for the XHTML 1.0 transitional DTD
         * "xhtml-frameset" for the XHTML 1.0 frameset DTD
         * "xhtml11" for the XHTML 1.1 DTD
         * "svg" or "svg-full" for the SVG 1.1 DTD
         * "svg-basic" for the SVG Basic 1.1 DTD
         * "svg-tiny" for the SVG Tiny 1.1 DTD
        
        :param name: the name of the ``DOCTYPE``
        :return: the ``(name, pubid, sysid)`` tuple for the requested
                 ``DOCTYPE``, or ``None`` if the name is not recognized
        :since: version 0.4.1
         N/A N/A N/A N/A html html-strict html-transitional html-frameset html5 xhtml xhtml-strict xhtml-transitional xhtml-frameset xhtml11 svg svg-full svg-basic svg-tiny N/A cls HTML N/A cls HTML_STRICT N/A DocType HTML_TRANSITIONAL N/A DocType HTML_FRAMESET N/A cls HTML5 N/A cls XHTML N/A cls XHTML_STRICT N/A cls XHTML_TRANSITIONAL N/A cls XHTML_FRAMESET N/A cls XHTML11 N/A cls SVG N/A cls SVG_FULL N/A cls SVG_BASIC N/A cls SVG_TINY get N/A N/A name lower N/A N/A get N/A classmethod get N/A XMLSerializer N/A object N/A N/A Produces XML text from an event stream.
    
    >>> from genshi.builder import tag
    >>> elem = tag.div(tag.a(href='foo'), tag.br, tag.hr(noshade=True))
    >>> print ''.join(XMLSerializer()(elem.generate()))
    <div><a href="foo"/><br/><hr noshade="True"/></div>
     N/A _PRESERVE_SPACE N/A frozenset __init__ N/A N/A self doctype strip_whitespace namespace_prefixes N/A None True None N/A N/A Initialize the XML serializer.
        
        :param doctype: a ``(name, pubid, sysid)`` tuple that represents the
                        DOCTYPE declaration that should be included at the top
                        of the generated output, or the name of a DOCTYPE as
                        defined in `DocType.get`
        :param strip_whitespace: whether extraneous whitespace should be
                                 stripped from the output
        :note: Changed in 0.4.2: The  `doctype` parameter can now be a string.
         N/A N/A self filters N/A N/A EmptyTagFilter N/A strip_whitespace N/A N/A N/A N/A N/A self filters append N/A WhitespaceFilter N/A self _PRESERVE_SPACE N/A N/A N/A N/A self filters append N/A NamespaceFlattener prefixes namespace_prefixes N/A doctype N/A N/A N/A N/A N/A self filters append N/A DocTypeInserter doctype N/A __call__ N/A N/A self stream N/A N/A N/A have_decl have_doctype False N/A in_cdata False N/A filter_ N/A self filters N/A N/A stream N/A filter_ stream N/A N/A kind data pos stream N/A N/A N/A N/A kind START N/A kind EMPTY N/A N/A N/A tag attrib data N/A buf N/A < tag N/A N/A attr value attrib N/A N/A buf N/A attr =" N/A escape value " N/A N/A N/A buf append N/A N/A N/A kind EMPTY /> > N/A N/A N/A Markup N/A N/A join buf N/A N/A N/A kind END N/A N/A N/A N/A Markup N/A </%s> data N/A N/A N/A kind TEXT N/A N/A in_cdata N/A N/A N/A data N/A N/A N/A N/A escape data quotes False N/A N/A N/A kind COMMENT N/A N/A N/A N/A Markup N/A <!--%s--> data N/A N/A N/A N/A kind XML_DECL N/A have_decl N/A N/A N/A version encoding standalone data N/A buf N/A N/A <?xml version="%s" version N/A encoding N/A N/A N/A N/A buf append N/A  encoding="%s" encoding N/A N/A standalone -1 N/A N/A standalone N/A N/A standalone yes no N/A N/A N/A buf append N/A  standalone="%s" standalone N/A N/A N/A buf append ?>
 N/A N/A N/A Markup N/A N/A join buf N/A have_decl True N/A N/A N/A N/A kind DOCTYPE N/A have_doctype N/A N/A N/A name pubid sysid data N/A buf N/A <!DOCTYPE %s N/A pubid N/A N/A N/A N/A buf append  PUBLIC "%s" N/A N/A sysid N/A N/A N/A N/A buf append  SYSTEM N/A sysid N/A N/A N/A N/A buf append  "%s" N/A N/A N/A buf append >
 N/A N/A N/A N/A Markup N/A N/A join buf N/A filter None data N/A have_doctype True N/A N/A N/A kind START_CDATA N/A N/A N/A N/A Markup <![CDATA[ N/A in_cdata True N/A N/A N/A kind END_CDATA N/A N/A N/A N/A Markup ]]> N/A in_cdata False N/A N/A N/A kind PI N/A N/A N/A N/A Markup N/A <?%s %s?> data N/A N/A XHTMLSerializer N/A XMLSerializer N/A N/A Produces XHTML text from an event stream.
    
    >>> from genshi.builder import tag
    >>> elem = tag.div(tag.a(href='foo'), tag.br, tag.hr(noshade=True))
    >>> print ''.join(XHTMLSerializer()(elem.generate()))
    <div><a href="foo"></a><br /><hr noshade="noshade" /></div>
     N/A _EMPTY_ELEMS N/A frozenset N/A area base basefont br col frame hr img input isindex link meta param N/A _BOOLEAN_ATTRS N/A frozenset N/A selected checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap N/A _PRESERVE_SPACE N/A frozenset N/A N/A QName pre N/A QName http://www.w3.org/1999/xhtml}pre N/A QName textarea N/A QName http://www.w3.org/1999/xhtml}textarea __init__ N/A N/A self doctype strip_whitespace namespace_prefixes drop_xml_decl N/A None True None True N/A N/A N/A N/A N/A super XHTMLSerializer self __init__ doctype False N/A N/A self filters N/A N/A EmptyTagFilter N/A strip_whitespace N/A N/A N/A N/A N/A self filters append N/A WhitespaceFilter N/A self _PRESERVE_SPACE N/A namespace_prefixes N/A namespace_prefixes N/A N/A N/A namespace_prefixes N/A http://www.w3.org/1999/xhtml N/A N/A N/A N/A self filters append N/A NamespaceFlattener prefixes namespace_prefixes N/A doctype N/A N/A N/A N/A N/A self filters append N/A DocTypeInserter doctype N/A N/A self drop_xml_decl drop_xml_decl N/A __call__ N/A N/A self stream N/A N/A N/A boolean_attrs N/A self _BOOLEAN_ATTRS N/A empty_elems N/A self _EMPTY_ELEMS N/A drop_xml_decl N/A self drop_xml_decl N/A have_decl have_doctype False N/A in_cdata False N/A filter_ N/A self filters N/A N/A stream N/A filter_ stream N/A N/A kind data pos stream N/A N/A N/A N/A kind START N/A kind EMPTY N/A N/A N/A tag attrib data N/A buf N/A < tag N/A N/A attr value attrib N/A N/A N/A attr boolean_attrs N/A N/A value attr N/A N/A N/A N/A attr xml:lang N/A lang attrib N/A N/A buf N/A  lang=" N/A escape value " N/A N/A N/A attr xml:space N/A N/A N/A buf N/A attr =" N/A escape value " N/A N/A kind EMPTY N/A N/A N/A tag empty_elems N/A N/A N/A N/A buf append  /> N/A N/A N/A N/A buf append N/A ></%s> tag N/A N/A N/A N/A buf append > N/A N/A N/A Markup N/A N/A join buf N/A N/A N/A kind END N/A N/A N/A N/A Markup N/A </%s> data N/A N/A N/A kind TEXT N/A N/A in_cdata N/A N/A N/A data N/A N/A N/A N/A escape data quotes False N/A N/A N/A kind COMMENT N/A N/A N/A N/A Markup N/A <!--%s--> data N/A N/A N/A N/A kind DOCTYPE N/A have_doctype N/A N/A N/A name pubid sysid data N/A buf N/A <!DOCTYPE %s N/A pubid N/A N/A N/A N/A buf append  PUBLIC "%s" N/A N/A sysid N/A N/A N/A N/A buf append  SYSTEM N/A sysid N/A N/A N/A N/A buf append  "%s" N/A N/A N/A buf append >
 N/A N/A N/A N/A Markup N/A N/A join buf N/A filter None data N/A have_doctype True N/A N/A N/A N/A kind XML_DECL N/A have_decl N/A drop_xml_decl N/A N/A N/A version encoding standalone data N/A buf N/A N/A <?xml version="%s" version N/A encoding N/A N/A N/A N/A buf append N/A  encoding="%s" encoding N/A N/A standalone -1 N/A N/A standalone N/A N/A standalone yes no N/A N/A N/A buf append N/A  standalone="%s" standalone N/A N/A N/A buf append ?>
 N/A N/A N/A Markup N/A N/A join buf N/A have_decl True N/A N/A N/A kind START_CDATA N/A N/A N/A N/A Markup <![CDATA[ N/A in_cdata True N/A N/A N/A kind END_CDATA N/A N/A N/A N/A Markup ]]> N/A in_cdata False N/A N/A N/A kind PI N/A N/A N/A N/A Markup N/A <?%s %s?> data N/A N/A HTMLSerializer N/A XHTMLSerializer N/A N/A Produces HTML text from an event stream.
    
    >>> from genshi.builder import tag
    >>> elem = tag.div(tag.a(href='foo'), tag.br, tag.hr(noshade=True))
    >>> print ''.join(HTMLSerializer()(elem.generate()))
    <div><a href="foo"></a><br><hr noshade></div>
     N/A _NOESCAPE_ELEMS N/A frozenset N/A N/A QName script N/A QName http://www.w3.org/1999/xhtml}script N/A QName style N/A QName http://www.w3.org/1999/xhtml}style __init__ N/A N/A self doctype strip_whitespace N/A None True N/A N/A Initialize the HTML serializer.
        
        :param doctype: a ``(name, pubid, sysid)`` tuple that represents the
                        DOCTYPE declaration that should be included at the top
                        of the generated output
        :param strip_whitespace: whether extraneous whitespace should be
                                 stripped from the output
         N/A N/A N/A N/A super HTMLSerializer self __init__ doctype False N/A N/A self filters N/A N/A EmptyTagFilter N/A strip_whitespace N/A N/A N/A N/A N/A self filters append N/A WhitespaceFilter N/A self _PRESERVE_SPACE N/A self _NOESCAPE_ELEMS N/A N/A N/A N/A self filters append N/A NamespaceFlattener prefixes N/A http://www.w3.org/1999/xhtml N/A doctype N/A N/A N/A N/A N/A self filters append N/A DocTypeInserter doctype N/A __call__ N/A N/A self stream N/A N/A N/A boolean_attrs N/A self _BOOLEAN_ATTRS N/A empty_elems N/A self _EMPTY_ELEMS N/A noescape_elems N/A self _NOESCAPE_ELEMS N/A have_doctype False N/A noescape False N/A filter_ N/A self filters N/A N/A stream N/A filter_ stream N/A N/A kind data pos stream N/A N/A N/A N/A kind START N/A kind EMPTY N/A N/A N/A tag attrib data N/A buf N/A < tag N/A N/A attr value attrib N/A N/A N/A attr boolean_attrs N/A N/A value N/A N/A buf N/A attr N/A N/A N/A : attr N/A N/A N/A N/A attr xml:lang N/A lang attrib N/A N/A buf N/A  lang=" N/A escape value " N/A N/A N/A attr xmlns N/A N/A buf N/A attr =" N/A escape value " N/A N/A N/A buf append > N/A N/A kind EMPTY N/A N/A N/A tag empty_elems N/A N/A N/A N/A buf append N/A </%s> tag N/A N/A N/A Markup N/A N/A join buf N/A N/A tag noescape_elems N/A N/A noescape True N/A N/A N/A kind END N/A N/A N/A N/A Markup N/A </%s> data N/A noescape False N/A N/A N/A kind TEXT N/A N/A noescape N/A N/A N/A data N/A N/A N/A N/A escape data quotes False N/A N/A N/A kind COMMENT N/A N/A N/A N/A Markup N/A <!--%s--> data N/A N/A N/A N/A kind DOCTYPE N/A have_doctype N/A N/A N/A name pubid sysid data N/A buf N/A <!DOCTYPE %s N/A pubid N/A N/A N/A N/A buf append  PUBLIC "%s" N/A N/A sysid N/A N/A N/A N/A buf append  SYSTEM N/A sysid N/A N/A N/A N/A buf append  "%s" N/A N/A N/A buf append >
 N/A N/A N/A N/A Markup N/A N/A join buf N/A filter None data N/A have_doctype True N/A N/A N/A kind PI N/A N/A N/A N/A Markup N/A <?%s %s?> data N/A N/A TextSerializer N/A object N/A N/A Produces plain text from an event stream.
    
    Only text events are included in the output. Unlike the other serializer,
    special XML characters are not escaped:
    
    >>> from genshi.builder import tag
    >>> elem = tag.div(tag.a('<Hello!>', href='foo'), tag.br)
    >>> print elem
    <div><a href="foo">&lt;Hello!&gt;</a><br/></div>
    >>> print ''.join(TextSerializer()(elem.generate()))
    <Hello!>

    If text events contain literal markup (instances of the `Markup` class),
    that markup is by default passed through unchanged:
    
    >>> elem = tag.div(Markup('<a href="foo">Hello &amp; Bye!</a><br/>'))
    >>> print elem.generate().render(TextSerializer)
    <a href="foo">Hello &amp; Bye!</a><br/>
    
    You can use the ``strip_markup`` to change this behavior, so that tags and
    entities are stripped from the output (or in the case of entities,
    replaced with the equivalent character):

    >>> print elem.generate().render(TextSerializer, strip_markup=True)
    Hello & Bye!
     __init__ N/A N/A self strip_markup N/A False N/A N/A Create the serializer.
        
        :param strip_markup: whether markup (tags and encoded characters) found
                             in the text should be removed
         N/A N/A self strip_markup strip_markup N/A __call__ N/A N/A self stream N/A N/A N/A strip_markup N/A self strip_markup N/A event stream N/A N/A N/A N/A event N/A 0 TEXT N/A N/A data N/A event N/A 1 N/A N/A strip_markup N/A N/A type data Markup N/A N/A data N/A N/A N/A N/A data striptags stripentities N/A N/A N/A unicode data N/A N/A EmptyTagFilter N/A object N/A N/A Combines `START` and `STOP` events into `EMPTY` events for elements that
    have no contents.
     N/A EMPTY N/A StreamEventKind EMPTY __call__ N/A N/A self stream N/A N/A N/A prev N/A None None None N/A ev stream N/A N/A N/A N/A prev N/A 0 START N/A N/A N/A N/A ev N/A 0 END N/A N/A prev N/A EMPTY N/A prev N/A 1 N/A prev N/A 2 N/A N/A prev N/A N/A N/A N/A prev N/A N/A N/A ev N/A 0 START N/A N/A N/A ev N/A prev ev N/A N/A N/A EMPTY N/A EmptyTagFilter EMPTY NamespaceFlattener N/A object N/A N/A Output stream filter that removes namespace information from the stream,
    instead adding namespace attributes and prefixes as needed.
    
    :param prefixes: optional mapping of namespace URIs to prefixes
    
    >>> from genshi.input import XML
    >>> xml = XML('''<doc xmlns="NS1" xmlns:two="NS2">
    ...   <two:item/>
    ... </doc>''')
    >>> for kind, data, pos in NamespaceFlattener()(xml):
    ...     print kind, repr(data)
    START (u'doc', Attrs([(u'xmlns', u'NS1'), (u'xmlns:two', u'NS2')]))
    TEXT u'\n  '
    START (u'two:item', Attrs())
    END u'two:item'
    TEXT u'\n'
    END u'doc'
     __init__ N/A N/A self prefixes N/A None N/A N/A N/A self prefixes N/A N/A XML_NAMESPACE uri xml N/A N/A prefixes None N/A N/A N/A N/A N/A self prefixes update prefixes N/A __call__ N/A N/A self stream N/A N/A N/A prefixes N/A dict N/A N/A v N/A k N/A N/A k v N/A N/A N/A self prefixes items N/A namespaces N/A N/A XML_NAMESPACE uri N/A xml _push_ns N/A N/A prefix uri N/A N/A N/A N/A N/A N/A N/A namespaces setdefault uri N/A append prefix N/A N/A N/A N/A N/A prefixes setdefault prefix N/A append uri N/A N/A ns_attrs N/A N/A _push_ns_attr N/A ns_attrs append _make_ns_attr N/A N/A prefix uri N/A N/A N/A N/A N/A xmlns%s N/A N/A prefix N/A :%s prefix uri N/A _gen_prefix N/A N/A N/A N/A N/A val 0 N/A 1 N/A N/A val 1 N/A N/A N/A ns%d val N/A N/A _gen_prefix N/A N/A _gen_prefix next N/A N/A kind data pos stream N/A N/A N/A N/A kind START N/A kind EMPTY N/A N/A N/A tag attrs data N/A tagname N/A tag localname N/A tagns N/A tag namespace N/A tagns N/A N/A N/A tagns namespaces N/A N/A prefix N/A N/A namespaces N/A tagns N/A -1 N/A prefix N/A N/A tagname N/A %s:%s N/A prefix tagname N/A N/A N/A _push_ns_attr N/A xmlns tagns N/A N/A _push_ns tagns N/A new_attrs N/A N/A N/A attr value attrs N/A N/A attrname N/A attr localname N/A attrns N/A attr namespace N/A attrns N/A N/A N/A attrns namespaces N/A N/A prefix N/A _gen_prefix N/A N/A _push_ns prefix attrns N/A N/A _push_ns_attr N/A N/A xmlns:%s prefix attrns N/A N/A prefix N/A N/A namespaces N/A attrns N/A -1 N/A prefix N/A N/A attrname N/A %s:%s N/A prefix attrname N/A N/A N/A new_attrs append N/A attrname value N/A N/A N/A kind N/A tagname N/A Attrs N/A ns_attrs new_attrs pos N/A N/A ns_attrs N/A N/A N/A N/A kind END N/A N/A tagname N/A data localname N/A tagns N/A data namespace N/A tagns N/A N/A prefix N/A N/A namespaces N/A tagns N/A -1 N/A prefix N/A N/A tagname N/A %s:%s N/A prefix tagname N/A N/A N/A kind tagname pos N/A N/A N/A kind START_NS N/A N/A N/A prefix uri data N/A N/A uri namespaces N/A N/A prefix N/A N/A N/A prefixes get uri N/A prefix N/A -1 N/A N/A _push_ns_attr N/A _make_ns_attr prefix uri N/A N/A _push_ns prefix uri N/A N/A N/A kind END_NS N/A N/A N/A data prefixes N/A N/A uris N/A N/A prefixes get data N/A uri N/A N/A uris pop N/A N/A uris N/A N/A N/A prefixes N/A data N/A N/A N/A uri uris N/A uri N/A uris N/A -1 N/A N/A uri_prefixes N/A namespaces N/A uri N/A N/A N/A uri_prefixes pop N/A N/A uri_prefixes N/A N/A N/A namespaces N/A uri N/A ns_attrs N/A N/A attr N/A _make_ns_attr data uri N/A N/A attr ns_attrs N/A N/A N/A N/A ns_attrs remove attr N/A N/A N/A N/A kind data pos N/A N/A WhitespaceFilter N/A object N/A N/A A filter that removes extraneous ignorable white space from the
    stream.
     __init__ N/A N/A self preserve noescape N/A None None N/A N/A Initialize the filter.
        
        :param preserve: a set or sequence of tag names for which white-space
                         should be preserved
        :param noescape: a set or sequence of tag names for which text content
                         should not be escaped
        
        The `noescape` set is expected to refer to elements that cannot contain
        further child elements (such as ``<style>`` or ``<script>`` in HTML
        documents).
         N/A N/A preserve None N/A N/A preserve N/A N/A N/A self preserve N/A frozenset preserve N/A N/A noescape None N/A N/A noescape N/A N/A N/A self noescape N/A frozenset noescape N/A __call__ N/A N/A self stream ctxt space trim_trailing_space collapse_lines N/A None N/A XML_NAMESPACE N/A space N/A N/A N/A re compile [ 	]+(?=
) sub N/A N/A N/A re compile 
{2,} sub N/A N/A mjoin N/A N/A Markup join N/A preserve_elems N/A self preserve N/A preserve 0 N/A noescape_elems N/A self noescape N/A noescape False N/A textbuf N/A N/A push_text N/A textbuf append N/A pop_text N/A textbuf pop N/A N/A kind data pos N/A chain stream N/A N/A None None None N/A N/A N/A kind TEXT N/A N/A noescape N/A N/A data N/A Markup data N/A N/A push_text data N/A N/A textbuf N/A N/A N/A N/A len textbuf 1 N/A N/A text N/A mjoin textbuf escape_quotes False N/A N/A textbuf N/A N/A N/A text N/A escape N/A pop_text quotes False N/A N/A preserve N/A N/A text N/A collapse_lines N/A trim_trailing_space text N/A N/A N/A TEXT N/A Markup text pos N/A N/A kind START N/A N/A N/A tag attrs data N/A N/A preserve N/A N/A tag preserve_elems N/A N/A N/A attrs get space preserve N/A N/A preserve 1 N/A N/A N/A noescape N/A tag noescape_elems N/A N/A noescape True N/A N/A N/A kind END N/A N/A noescape False N/A preserve N/A N/A preserve 1 N/A N/A N/A kind START_CDATA N/A N/A noescape True N/A N/A N/A kind END_CDATA N/A N/A noescape False N/A kind N/A N/A N/A N/A kind data pos N/A N/A DocTypeInserter N/A object N/A N/A A filter that inserts the DOCTYPE declaration in the correct location,
    after the XML declaration.
     __init__ N/A N/A self doctype N/A N/A N/A Initialize the filter.

        :param doctype: DOCTYPE as a string or DocType object.
         N/A N/A isinstance doctype basestring N/A N/A doctype N/A N/A DocType get doctype N/A N/A self doctype_event N/A DOCTYPE doctype N/A None -1 -1 N/A __call__ N/A N/A self stream N/A N/A N/A doctype_inserted False N/A N/A kind data pos stream N/A N/A N/A doctype_inserted N/A N/A doctype_inserted True N/A N/A kind XML_DECL N/A N/A N/A N/A kind data pos N/A N/A N/A self doctype_event N/A N/A N/A N/A self doctype_event N/A N/A N/A kind data pos N/A N/A doctype_inserted N/A N/A N/A N/A self doctype_event N/A N/A