kid-templating.org


XMLSerializer


Attributes

a decl

1

a balanced_blocks

False

a encoding

'utf-8'

a doctype

None

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 has_only_pcdata(self, tagname) ...

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

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

f apply_filters(self, stream) ...

f balancing_filter(self, stream) ...

f whitespace_filter(self, stream) ...

f __init__(self, encoding=None, decl=None, doctype=None, namespaces=None) ...

f can_be_empty_element(self, ns_stack, item_name) ...

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

Serializes an event stream to bytes of the specified encoding.

This function yields an encoded string over and over until the stream is exhausted.

f escape_cdata(text, encoding=None) ...

Escape character data.

f escape_attrib(text, encoding=None) ...

Escape attribute value.

See the source for more information.