Hi all,
wondering if any could help on a request i've been given. Basically i've been asked to intergrate/parse an xml feed into a php page, outputting all the values. the feed can be found here
http://www.superbreak.com/xml/offer...m?company=IN862
with the format being:
<?xml version='1.0'?>
<FEED>
<OFFER_GROUP>#-multiple groups
<OFFER_TYPE>group name</OFFER_TYPE>
<OFFER>#-multiple offers
<DESTINATION_COUNTRY>hotel country</DESTINATION_COUNTRY>
<DESTINATION_CITY>hotel city</DESTINATION_CITY>
<HOTEL_CODE>hotel code</HOTEL_CODE>
<HOTEL>hotel name</HOTEL>
<OFFER_PRICE>per person</OFFER_PRICE>
<NORMAL_PRICE>per person</NORMAL_PRICE>
<OFFER_DATES>dates of offer - from/to</OFFER_DATES>
<BOOKING_DATES>booking dates - from/to</BOOKING_DATES>
<URL>URL of the hotel page</URL>
<CONDITIONS>booking conditions</CONDITIONS>
<DESCRIPTION>offer description</DESCRIPTION>
</OFFER>
</OFFER_GROUP>
</FEED>
I first tried to run the feed with an rss parser but no luck, so I take its not compatible with the rss feed format. My question is, how hard is it to loop through the feed and output the details, bearing in mind that the feed itself cannot be changed?
Any pointers in the right direction/code examples greatly appriciated!
Thanks
Ian