In my python code I am trying to display the output in a XML format.For this purpose I am using \[code\]XMLwriter\[/code\].But it is showing error:\[code\]Traceback (most recent call last): File "C:\Users\Ponmani\Desktop\test.cgi", line 8, in <module> from elementtree.SimpleXMLWriter import XMLWriterImportError: No module named elementtree.SimpleXMLWriter\[/code\]The line which causes the error is:\[code\]from elementtree.SimpleXMLWriter import XMLWriter\[/code\]My entire python code is:\[code\]import osimport cgiimport MySQLdbimport cgitbfrom xml.etree.ElementTree import ElementTreefrom elementtree.SimpleXMLWriter import XMLWriterimport sysimport SecureDbcgitb.enable()print "Content-type: text/xml\n\n";root=xml.start("root")conn= MySQLdb.connect(host = SecureDb.host ,user =SecureDb.user ,passwd=SecureDb.password ,db=SecureDb.database)cursor=conn.cursor()xml=XMLWriter(sys.stdout)cursor.execute("select * from register where Name='Subburaj'")result=cursor.fetchall()if(result!=()): for colns in result: xml.start("Group") xml.element("Name","%s" %(colns[0])) xml.element("Mail","%s" %(colns[1]))print resultxml.end()xml.close(root)conn.commit()cursor.close()conn.close()\[/code\]