If your encoding is UTF-8 (or ASCII ...) you don't need an XML
declaration. Otherwise everything depends on the XML lib you
use. For ElementTree, `tostring(elt, "ISO-8859-1")` for example
will automatically include the right declaration at the beginning
of your xml string ...
There is no namespace information inside the prolog. Such
"stuff" may appear inside the root element. Again, RTFM of
your specific XML lib :) For ElementTree, see
Comment