Jump to content


xml parsing this complext xml

parsing xml php

  • Please log in to reply
1 reply to this topic

#1 nade93

  • Members
  • PipPipPip
  • Advanced Member
  • 113 posts

Posted 21 March 2014 - 07:51 PM

Hi all


I am hoping you can help. I am looking to pull the feed and parse the follow. I am wanting to get both the attributes and the cildren of the market branch of xml. Can someone help me out please?


<oxip version="7.1" created="2014-03-21 19:19:20" lastMsgId="" requestTime="0.1686">
<response request="getHierarchyByMarketType" code="001" message="success" debug="">
<class id="436" name="Football - Virtual" maxRepDate="2014-03-21" maxRepTime="00:56:39">
<type id="8398" name="Victoria Stadium" url="http://sports.willia.../betting/t/8398" lastUpdateDate="2014-03-10" lastUpdateTime="23:31:52">
<market id="152656333" name=" Czech Republic v Poland - Match Betting" url="http://sports.willia...public-v-Poland"date="2014-03-21" time="19:20:00" betTillDate="2014-03-21" betTillTime="19:20:00" lastUpdateDate="2014-03-21" lastUpdateTime="00:53:59">
<participant name="Poland" id="534674127" odds="2/1" oddsDecimal="3.00" lastUpdateDate="2014-03-21" lastUpdateTime="00:53:59" handicap=""/>
<participant name="Draw" id="534674126" odds="12/5" oddsDecimal="3.40" lastUpdateDate="2014-03-21" lastUpdateTime="00:53:59" handicap=""/>
<participant name="Czech Republic" id="534674125" odds="5/4" oddsDecimal="2.25" lastUpdateDate="2014-03-21" lastUpdateTime="00:53:59" handicap=""/>


#2 requinix

  • Administrators
  • Lazy Administrator
  • 9,128 posts
  • LocationWA

Posted 03 July 2014 - 06:31 AM

Fortunately you don't have to deal with namespaces.

What have you tried? Seen SimpleXML yet?
The Reimann Zeta Function Trolley Problem | "Stop! You're spoiling my unjustified indignation!"

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users