XML Parsing

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Wed Mar 28 13:15:17 CEST 2007


pyapplico at gmail.com a écrit :
> I want to parse this XML file:
> 
> <?xml version="1.0" ?>
> 
> <text>
> 
> <text:one>
> <file>filename</file>
> <contents>
> Hello
> </contents>
> </text:one>
> 
> <text:two>
> <file>filename2</file>
> <contents>
> Hello2
> </contents>
> </text:two>
> 
> </text>
> 
> This XML will be in a file called filecreate.xml
> 
> As you might have guessed, I want to create files from this XML file
> contents, so how can I do this?

Using a sax parser might be the best solution here.




More information about the Python-list mailing list