[Tutor] Python to XML

tee chwee liong tcl76 at hotmail.com
Mon Apr 11 07:46:46 CEST 2011


hi, 
 
i just started to learn xml using python and i'm getting error when opening the output xml. it doesnt give error when running. 
i also tried to use python to output to a text file and it works without any error. Pls advise me how i can rectify the error when opening the output xml.
attached is my code, output in text file and output in xml. 
 
thanks
tcl
 
 
 
  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110411/7d984161/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: debug.py
URL: <http://mail.python.org/pipermail/tutor/attachments/20110411/7d984161/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: out.txt
URL: <http://mail.python.org/pipermail/tutor/attachments/20110411/7d984161/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: port1.xml
Type: application/octet-stream
Size: 99 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20110411/7d984161/attachment-0001.obj>


More information about the Tutor mailing list