def Canonicalize(node, output=None, **kw):
if output:<EOL><INDENT>_implementation(*(node, output.write), **kw)<EOL><DEDENT>else:<EOL><INDENT>s = io.StringIO()<EOL>_implementation(*(node, s.write), **kw)<EOL>return s.getvalue()<EOL><DEDENT>
Canonicalize(node, output=None, **kw) -> UTF-8

    Canonicalize a DOM document/element node and all descendents.
    Return the text; if output is specified then output.write will
    be called to output the text and None will be returned
    Keyword parameters:
        nsdict: a dictionary of prefix:uri namespace entries
                assumed to exist in the surrounding context
        comments: keep comments if non-zero (default is 0)
        subset: Canonical XML subsetting resulting from XPath
                (default is [])
        unsuppressedPrefixes: do exclusive C14N, and this specifies the
                prefixes that should be inherited.