lesscode.org


Serializer


Attributes

a encoding

'utf-8'

a namespaces

{'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'}

Methods

f __init__(self, encoding=None, src_encoding='utf-8') ...

f apply_filters(self, stream) ...

f balancing_filter(self, stream) ...

f generate(self, stream, encoding=None, fragment=0) ...

f has_only_pcdata(self, tagname) ...

f serialize(self, stream, encoding=None, fragment=0) ...

f whitespace_filter(self, stream) ...

f write(self, stream, file, encoding=None, fragment=0) ...

See the source for more information.