dimanche 28 juin 2015

select specific data in a xml file

I've got this xml file

<data-set xmlns:xsi="http://ift.tt/ra1lAU">
        <Date>1 July</Date>
        <Date>2 July</Date>
        <Date>3 July</Date>

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