Look into e4x To only show items with value="a" it would be aXML.item.(@value == "a")
On Thu, Aug 5, 2010 at 11:18 AM, 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

