Hi,<br><br>I have the following Python code:<br><br><br>from lxml import etree<br>from StringIO import StringIO<br><br>def loadXMLFile( filename ):<br>&nbsp;&nbsp;&nbsp; f = open( filename, &#39;r&#39; )<br>&nbsp;&nbsp;&nbsp; xmldata = f.read()<br>&nbsp;&nbsp;&nbsp; root = 
etree.parse( StringIO( xmldata ) )<br>&nbsp;&nbsp;&nbsp; f.close()<br>&nbsp;&nbsp;&nbsp; return root<br><br><br>Python either crashes or hangs at the etree.parse() call. Below is the contents of the XML file I&#39;m opening:<br><br>&lt;Page&gt;<br>&nbsp;&nbsp;&nbsp; &lt;Frame type=&quot;Root&quot;&gt;
<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!-- Check idle time for attract mode --&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;OnIdleTime time=&quot;10000&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;StartAttractMode dispatch=&quot;GAME&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/OnIdleTime&gt;<br><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!-- Title Screen Image --&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Frame type=&quot;Image&quot; value=&quot;Interface/Titlescreen.spr&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;OnInput key=&quot;KEY_ACCEPT&quot; require_focus=&quot;false&quot;&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!--&lt;GoToPage dispatch=&quot;GUI&quot; page=&quot;LeaderboardMenu&quot;/&gt;--&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;GoToPage dispatch=&quot;GUI&quot; page=&quot;MainMenu&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;PlaySound dispatch=&quot;GAME&quot; file=&quot;InterfaceSchwing&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/OnInput&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Frame&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;/Frame&gt;<br>&lt;/Page&gt;<br><br>Anyone know why it isn&#39;t working? Thanks!<br><br>