The Serializer class is accessible via the kid.serialization module.
{'http://purl.org/atom/ns#': 'atom',
'http://purl.org/rss/1.0/': 'rss',
'http://www.w3.org/1999/02/22-rdf-syntax-ns#': 'rdf',
'http://www.w3.org/1999/xhtml': 'html',
'http://www.w3.org/XML/1998/namespace': 'xml'}
Initialize Serializer.
You can change the following parameters:
encoding: the output encoding src_encoding: the source encoding formatted: whether all tags should be considered formatted inline: whether all tags should be considered inline format: format to be applied (string or instance of Format)
Apply format to stream.
Note that this method is unaware of the serialization of the tags and does only take into account the text inside the stream. So the results may sometimes differ from what you expect when formatting the complete serialized output.
See the source for more information.