|
|
|
| Несколько раз поднималась эта тема но так и никто нигде ничего не ответил.
<?xml version="1.0" encoding="windows-1251"?>
<weather created="rp5.ru" date="2008-7-09">
<point id="5483">
<point_id>5483</point_id>
<region_id>100</region_id>
<country_id>3</country_id>
<point_name>Москва</point_name>
<point_name_trim>Москва</point_name_trim>
<point_name2>в Москве</point_name2>
<point_timestamp>1215600474</point_timestamp>
<gmt_add>4</gmt_add>
<point_date>Wed, 9 Jul 2008 10:47:54 +0400</point_date>
<point_date_time>2008-7-09 10:47 </point_date_time>
<timestep>
<time_step>12</time_step>
<datetime>2008-7-09 16:00</datetime>
<G>16</G>
<HHii>16:00</HHii>
<cloud_cover>100</cloud_cover>
<precipitation>0.0</precipitation>
<pressure>741</pressure>
<temperature>20</temperature>
<humidity>66</humidity>
<wind_direction>С-З</wind_direction>
<wind_velocity>2</wind_velocity>
<falls>0</falls>
<drops>0</drops>
</timestep>
<timestep>
<time_step>24</time_step>
<datetime>2008-7-10 04:00</datetime>
<G>4</G>
<HHii>04:00</HHii>
<cloud_cover>100</cloud_cover>
<precipitation>0.4</precipitation>
<pressure>742</pressure>
<temperature>16</temperature>
<humidity>95</humidity>
<wind_direction>С</wind_direction>
<wind_velocity>1</wind_velocity>
<falls>1</falls>
<drops>0.5</drops>
</timestep>
<timestep>
<time_step>36</time_step>
<datetime>2008-7-10 16:00</datetime>
<G>16</G>
<HHii>16:00</HHii>
<cloud_cover>82</cloud_cover>
<precipitation>0.0</precipitation>
<pressure>739</pressure>
<temperature>22</temperature>
<humidity>64</humidity>
<wind_direction>С-В</wind_direction>
<wind_velocity>3</wind_velocity>
<falls>0</falls>
<drops>0</drops>
</timestep>
<timestep>
<time_step>48</time_step>
<datetime>2008-7-11 04:00</datetime>
<G>4</G>
<HHii>04:00</HHii>
<cloud_cover>100</cloud_cover>
<precipitation>0.0</precipitation>
<pressure>741</pressure>
<temperature>16</temperature>
<humidity>90</humidity>
<wind_direction>С-З</wind_direction>
<wind_velocity>2</wind_velocity>
<falls>0</falls>
<drops>0</drops>
</timestep>
</point>
</weather>
|
до первого <timestep> нужно разобрать в переменные, остальное в массиив.
Помогите пожалуйста, но лучше пример . | |
|
|
|
|
|
|
|
для: Port_Artur1
(09.07.2008 в 11:16)
| | Кажеться не в той теме написал.
Помогите! | |
|
|
|
|
|
|
|
для: Port_Artur1
(09.07.2008 в 14:58)
| | Всё ещё актуально | |
|
|
|
|
|
|
|
|
для: Trianon
(09.07.2008 в 21:04)
| | rp5.ru | |
|
|
|
|
|
|
|
для: Port_Artur1
(10.07.2008 в 11:43)
| |
<?php
$xml = simplexml_load_file('file.xml');
print_r($xml);
?>
|
| |
|
|
|