Can someone help me read a XML file in PHP
http://rss.accuweather.com/rss/liveweather_rss.asp?metric=0&locCode=OCN|NZ|NZ000|AUCKLAND
IN this example I want to get the values from some of the item nodes.... And only use some of them... can anyone please help
at first we have to get the source
maybe
<?php $html = file_get_contents( "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=0&locCode=OCN|NZ|NZ000|AUCKLAND" ); ?>
would this work???
If using PHP 5, see [man]SimpleXML[/man].
If using PHP 4, see [man]DOM_XML[/man].