This function takes a DOM element as input and returns an XML
document with the input element as root encoded as ISO-8859-1
string. This function is namespace aware.
The optional ``nsmap`` parameter may contain a dictionary of
XML prefixes and namespace URIs; these namespace definitions will
be appended to the document root elements list of xmlns attributes.
In case it is missing, the namespaces used throughout the document
are automatically determined and the corresponding xmlns attributes
will be created.
|