<br><br><div class="gmail_quote">On Tue, Aug 30, 2011 at 1:27 PM, rail shafigulin <span dir="ltr"><<a href="mailto:rail.shafigulin@gmail.com">rail.shafigulin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hello everyone. <br><br>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<br><br><tag1><br></tag1><br>
<br><tag2><br></tag2><br><br><tag3/><br><br>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.<br><br>
any help is appreciated<br>thanks<br>
<br></blockquote><div>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 <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Joel Goldstick<br><br>