Processing XML File

jakecjacobson jakecjacobson at gmail.com
Fri Jan 29 18:25:19 CET 2010


I need to take a XML web resource and split it up into smaller XML
files.  I am able to retrieve the web resource but I can't find any
good XML examples.  I am just learning Python so forgive me if this
question has been answered many times in the past.

My resource is like:

<document>
     ...
     ...
</document>
<document>
     ...
     ...
</document>

So in this example, I would need to output 2 files with the contents
of each file what is between the open and close document tag.



More information about the Python-list mailing list