Link to home
Start Free TrialLog in
Avatar of mcluff
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

<?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;
	
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mcluff
mcluff

ASKER

Many thanks