[Tutor] Generating XML using Python
tee chwee liong
tcl76 at hotmail.com
Mon Apr 11 08:08:39 CEST 2011
hi,
i'm using python to generate xml with elementtree api. 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
p/s: i sent earlier email but got bounced email so sending out again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110411/35042ecd/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: debug.py
URL: <http://mail.python.org/pipermail/tutor/attachments/20110411/35042ecd/attachment.ksh>
-------------- 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/35042ecd/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: out.txt
URL: <http://mail.python.org/pipermail/tutor/attachments/20110411/35042ecd/attachment.txt>
More information about the Tutor
mailing list