You can filter XML with arbitrary boolean functions, so the answer is
definitely yes.

See http://livedocs.adobe.com/flex/3/html/13_Working_with_XML_08.html#131880

One of the examples there shows XML stored in var x with a list of <employee
id="23"/> type elements, and you can use this syntax to get an XMLList of
employees with id attributes over 300:

x.employee.(@id > 300)

Similarly, if you had a birthdate field stored as milliseconds since 1970
you could filter on that like so:

x.employee.(new Date(@birthdate).getFullYear() == 2000)

to return a list of employees who were born in the year 2000.  (Presumably a
short list. :-)

Dave

On Mon, Mar 9, 2009 at 1:07 PM, Eric E. Dolecki <[email protected]> wrote:

> I suppose if the XML has that kind of data in it you could.
>
> On Mon, Mar 9, 2009 at 12:02 PM, Doug Coning <[email protected]> wrote:
>
> > Greetings everyone,
> >
> > In AS3, can you filter xml by a date value or range?
> >
> > Thanks,
> >
> > Doug Coning
> >
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> http://ericd.net
> Interactive design and development
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to