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

Reply via email to