Python & XML

Chris Richard Adams chrisa at ASPATECH.COM.BR
Tue Feb 13 14:20:50 EST 2001


Hi all..
 
I have a tab seperated file that I would like to parse and store in XML
format.   

file example:

line1: 12:00:00 bob nassl.pdf 123.123.123.123

would like to create an xml file from this text file in the form

<upload>
	<time>12:00:00</time>
	<user>bob</user>
	<file>nassl.pdf</file>
	<ip>123.123.123.123</ip>
</upload>

Could someone advise me on how I might do this with Python...for example
is there a utility to create XML doc like this.




More information about the Python-list mailing list