[Tutor] xml parsing without a root element
joel.goldstick at gmail.com
Tue Aug 30 20:11:33 CEST 2011
On Tue, Aug 30, 2011 at 1:27 PM, rail shafigulin
<rail.shafigulin at gmail.com>wrote:
> hello everyone.
> i need to parse a an xml-like file. the problem that i'm facing is that
> this file doesn't have the root element but in all other terms it is the
> same as xml, i.e
> does anybody know if there is a module in python that allows to process an
> xml file without a root element? i tried ElementTree but it didn't work.
> any help is appreciated
> Why not read the file into a buffer, put the xml tag at the top and wrap
the buffer with a root element. Then try ElementTree
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor