I've got this xml file
<data-set xmlns:xsi="http://ift.tt/ra1lAU">
<record>
<Date>1 July</Date>
<Ville>New-York</Ville>
<haute>6h50</haute>
<basse>1h14</basse>
<haute2>20h01</haute2>
<basse2>13h16</basse2>
</record>
<record>
<Date>2 July</Date>
<Ville>New-York</Ville>
<haute>7h36</haute>
<basse>1h59</basse>
<haute2>20h41</haute2>
<basse2>13h56</basse2>
</record>
<record>
<Date>3 July</Date>
<Ville>Miami</Ville>
<haute>8h21</haute>
<basse>2h44</basse>
<haute2>21h22</haute2>
<basse2>14h37</basse2>
</record>
</data-set>
I would like, in my AS3 code, to be able to select specific data from this xml file.
Example :
var currentDate=new Date();
var day=currentDate.getDate();
If the day == one of the day of the xml, display "haute" of the corresponding day.
Is it possible ? How can I do that ?
Aucun commentaire:
Enregistrer un commentaire