/////// / I am accessing my XML via the SimpleXML system. I / I can grab simple single tags but I need to make the below an array /////// ///// XML DATA ///// /* 6/18/07 12:23 AM CDT N/A 72 5:15 AM 8:28 PM 30 AM Clouds / PM Sun 10 N/A 170 S AM Clouds 10 69 33 Mostly Clear 9 N/A 184 S M Clear 10 68 89 70 5:15 AM 8:29 PM 38 PM T-Storms 21 N/A 212 SSW PM T-Storms 40 48 4 T-Storms 21 N/A 221 SW T-Storms 80 70 79 61 5:15 AM 8:29 PM 30 Partly Cloudy 24 N/A 294 WNW P Cloudy 20 50 31 Clear 8 N/A 295 WNW Clear 0 58 */ function parsexml($serviceurl,$loc,$partner,$license){ $url = $serviceurl.$loc.'?cc=*&prod=xoap&par='.$partner.'&key='.$license; $xmlfile = file_get_contents($url); $xml = new SimpleXMLElement($xmlfile); foreach ($xml->head as $head => $value) { echo $head.$value.'
'; } echo '


';
var_dump($xml->dayf);
echo '


'; }