我有这样的示例Feed
http://bingogs.bingosys.net/extGetRooms.php?NW=Plus&C=GBP
示例XML
<ROOT xmlns:sql="urn:schemas-microsoft-com:xml-sql">
<ROOM id="20" maxplayers="0" currentplayers="0" cm="" status="1" seconds="196" progressive="19.48" name="Tuppence Treats" cardvalue="0.02" jackpot="50.00" opentimes="2pm" roomtype="90" ticketGraphic="" lastWinner="" cardType="3"/>
<ROOM id="39" maxplayers="0" currentplayers="0" cm="" status="1" seconds="1996" progressive="19.48" name="Fancy Free" cardvalue="0.00" jackpot="10.00" opentimes="Midday" roomtype="90" ticketGraphic="" lastWinner="" cardType="3"/>
</ROOT>
我如何访问每个ROOM的属性,例如maxplayers,lastWinner等?
答案 0 :(得分:0)
您可以使用PHP中的SimpleXml库(http://es.php.net/simplexml)。解析xml文档有很多类似的库。