I am trying:

buildXML = peopleXML.person.(@group == dd_group.value.toString()) && 
peopleXML.person.(@room == dd_room.value.toString());


but it only seem to pick up the last condition - how can I get multiple 
conditions in? 

________________________________________
From: [email protected] 
[[email protected]] On Behalf Of Taka Kojima 
[[email protected]]
Sent: Thursday, August 05, 2010 3:08 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Querying XML

E4X is a much better approach than looping through an XML object and adding
items to an XMLList.

An E4x command automatically returns an XMLList type object.

On Thu, Aug 5, 2010 at 11:47 AM, Nathan Mynarcik <[email protected]>wrote:

> You would need to make a var that is an XMLList that pulls only the nodes
> that have the value "a".  Then you can trace out your XMLList and it will
> only be the ones you need.
>
> Nathan Mynarcik
> [email protected]
> 254.749.2525
> www.mynarcik.com
>
>
> On Thu, Aug 5, 2010 at 2:18 PM, Lehr, Theodore <[email protected]
> >wrote:
>
> > Is there a way to only show certain xml based on a value - for instance -
> > say I have:
> >
> > var aXML:XML =
> > <root>
> >    <item title="1" value="a"/>
> >    <item title="2" value="a"/>
> >    <item title="3" value="a"/>
> >    <item title="4" value="b"/>
> >    <item title="5" value="b"/>
> > </root>
> >
> >
> > So if someone picks "a" from a drop down - I would then only display the
> > ones that have the value of a in a datagrid...
> >
> > I am used to just doing something like:
> >
> > var myDP:DataProvider = new DataProvider(aXML);
> >
> > How can I remove xml members or keep them from being shown?
> >
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
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