Re: [Flashcoders] Querying XML

2010-08-06 Thread Glen Pike
: Friday, August 06, 2010 12:40 PM To: Flash Coders List Subject: Re: [Flashcoders] Querying XML Lehr, Theodore wrote: I am trying: buildXML = peopleXML.person.(@group == dd_group.value.toString())&& peopleXML.person.(@room == dd_room.value.toStri

Re: [Flashcoders] Querying XML

2010-08-06 Thread Taka Kojima
.net] > Sent: Friday, August 06, 2010 12:40 PM > To: Flash Coders List > Subject: Re: [Flashcoders] Querying XML > > Lehr, Theodore wrote: > > I am trying: > > > > buildXML = peopleXML.person.(@group == dd_group.value.toString())&& &

RE: [Flashcoders] Querying XML

2010-08-06 Thread Lehr, Theodore
nt: Friday, August 06, 2010 12:40 PM To: Flash Coders List Subject: Re: [Flashcoders] Querying XML Lehr, Theodore wrote: > I am trying: > > buildXML = peopleXML.person.(@group == dd_group.value.toString())&& > peopleXML.person.(@room == dd_room.value.toString()); > I am

Re: [Flashcoders] Querying XML

2010-08-06 Thread Henrik Andersson
Lehr, Theodore wrote: I am trying: buildXML = peopleXML.person.(@group == dd_group.value.toString())&& peopleXML.person.(@room == dd_room.value.toString()); I am surprised that it even returns an XMLList, wait, does it? ___ Flashcoders mailing lis

RE: [Flashcoders] Querying XML

2010-08-06 Thread Lehr, Theodore
ers-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Taka Kojima [t...@gigafied.com] 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

Re: [Flashcoders] Querying XML

2010-08-05 Thread Henrik Andersson
Taka Kojima wrote: E4X is a much better approach than looping through an XML object and adding items to an XMLList. In this case, yes. But only because it will end up being the same code that you would have written anyway. The condition syntax is nothing but an inline search loop. And the lo

Re: [Flashcoders] Querying XML

2010-08-05 Thread Nathan Mynarcik
I agree, and you can do a for loop to display your data. On Thu, Aug 5, 2010 at 3:08 PM, Taka Kojima wrote: > 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, 20

Re: [Flashcoders] Querying XML

2010-08-05 Thread Taka Kojima
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 wrote: > You would need to make a var that is an XMLList that pulls only the nodes > that

Re: [Flashcoders] Querying XML

2010-08-05 Thread Taka Kojima
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 wrote: > Is there a way to only show certain xml based on a value - for instance - > say I have: > > var aXML:XML = > > > > > > > > > > So i

Re: [Flashcoders] Querying XML

2010-08-05 Thread Nathan Mynarcik
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 nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Thu, Aug 5, 2010 at 2:18 PM, Lehr, Theodore wrote:

[Flashcoders] Querying XML

2010-08-05 Thread Lehr, Theodore
Is there a way to only show certain xml based on a value - for instance - say I have: var aXML:XML = 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