Scroll
I'm trying to create a weather parser.
Forums
Here is the xml
<code>
<day date="2013-02-21">...</day>
<day date="2013-02-22">...</day>
<day date="2013-02-23">...</day>
<day date="2013-02-24">...</day>
<day date="2013-02-25">...</day>
<day date="2013-02-26">...</day>
<day date="2013-02-27">...</day>
<day date="2013-02-28">...</day>
<day date="2013-03-01">...</day>
<day date="2013-03-02">...</day>
</code>
with their own
<day_part typeid="1"type="morning">...</day_part>
<day_part typeid="2" type="day">...</day_part>
<day_part typeid="3" type="evening">...</day_part>
<day_part typeid="4" type="night">...</day_part>
<day_part typeid="5" type="day_short">...</day_part>
<day_part typeid="6" type="night_short">...</day_part>
when creating a 10-day weather module, I encountered a problem where I cannot create a loop for the day attribute
and as I understand, another loop is needed for day_part but there are 2 types that should not be included ( day_short and night_short)
Please help with this issue.
I am just learning PHP. If you know the solution, please show it in an example, not just a function.