Parsing complex XML to PHP and database

Lypiphera

New Member
I have the following feed which I wish to parse and grab certain data fromhttp://xmlfeeds.centrebet.com/xmlRugbyLeaguefeed.xmlWhilst I was able to do this in past using a class to pull the XML into an array. I am suffering a few complications with it now, and there have been changes almost weekly that have made it hard to automate the grabbing as I was basing it on specific keywords.What I want to grab from the XML is only the master events that have the attribute ofTopLevelName="NRL Round 18" (this will obviously change each week to round 19, 20 etc)I then only need to get the following for each of the events under that masterevent
  • "straight bet" "price" for each "Competitor/competitorname"
  • EventURL
  • competitorname
I ave scrapped my code as it was overly complex but can paste it if you like, I was using this XML parserhttp://www.bin-co.com/php/scripts/xml2array/Cheers
 
Back
Top