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> f = open( filename, 'r' )<br> xmldata = f.read()<br> root =
etree.parse( StringIO( xmldata ) )<br> f.close()<br> return root<br><br><br>Python either crashes or hangs at the etree.parse() call. Below is the contents of the XML file I'm opening:<br><br><Page><br> <Frame type="Root">
<br><br> <!-- Check idle time for attract mode --><br> <OnIdleTime time="10000"><br> <StartAttractMode dispatch="GAME"/><br> </OnIdleTime><br><br>
<!-- Title Screen Image --><br> <Frame type="Image" value="Interface/Titlescreen.spr"><br> <OnInput key="KEY_ACCEPT" require_focus="false">
<br> <!--<GoToPage dispatch="GUI" page="LeaderboardMenu"/>--><br> <GoToPage dispatch="GUI" page="MainMenu"/><br> <PlaySound dispatch="GAME" file="InterfaceSchwing"/>
<br> </OnInput><br> </Frame><br><br> </Frame><br></Page><br><br>Anyone know why it isn't working? Thanks!<br><br>