php & xml

php & xml

am 23.10.2007 13:37:54 von Voodoo

Hi,
i am trying to put field from this page in a table,
http://xoap.weather.com/weather/local/FRXX0153?cc=*&dayf=10& prod=xoap&unit=m&par=1050532020&key=133aa3f76734eadf

i can get the correct data for the current day, but not for the forecast
days :

10/22/07 3:19 PM Local Time
-
N/A
-1
8:02 AM
6:41 PM
-
44
N/A
-
N/A
N/A
N/A
N/A

N/A
0
N/A

-
31
Clear
-
8
N/A
360
N

Clear
0
76


+
......

....
-
f

my code:
$parser = xml_parser_create( );
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parse_into_struct($parser,$xml,$values,$index);
xml_parser_free($parser);


$city = htmlspecialchars($values[$index['dnam'][0]]['value']);
$unit_temp = $values[$index['ut'][0]]['value'];
$unit_speed = $values[$index['us'][0]]['value'];

I can not get the forecast days (1 to 9) in a correct array..
Do i need to parse again??

Thanks for your help
VooDoo