Husen daudi <hda at openerp.co.in> added the comment: Yes I am using xml.dom.minidom doc.toprettyxml(indent="\t").encode('utf-8') ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue5762> _______________________________________