mcluff
asked on
Load xml and display data
Hi Experts,
I am trying to load this xml - http://www.onthesnow.co.uk/austria/snow-rss.html - and display the <title> and <ots:base_depth>.
I have successfully got the title but can't seem to get the ots:base_depth
Any help would be hugely appreciated
I am trying to load this xml - http://www.onthesnow.co.uk/austria/snow-rss.html - and display the <title> and <ots:base_depth>.
I have successfully got the title but can't seem to get the ots:base_depth
Any help would be hugely appreciated
<?php
$xml = simplexml_load_file("http://www.onthesnow.co.uk/austria/snow-rss.html");
foreach($xml->channel->item as $resort) {
echo $resort->title;
echo $resort->description;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER