<br><br><div class="gmail_quote">On Tue, Aug 30, 2011 at 1:27 PM, rail shafigulin <span dir="ltr">&lt;<a href="mailto:rail.shafigulin@gmail.com">rail.shafigulin@gmail.com</a>&gt;</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&#39;m facing is that this file doesn&#39;t have the root element but in all other terms it is the same as xml, i.e<br><br>&lt;tag1&gt;<br>&lt;/tag1&gt;<br>

<br>&lt;tag2&gt;<br>&lt;/tag2&gt;<br><br>&lt;tag3/&gt;<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&#39;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>