Ok you got it almost right like you said. instead of attributes use attribute.
var list:XMLList = XML(dataProvider).descendants().(attribute("editing") == "true") the thing now is how do i change the element. i tried go through the list and change the attribute to "false" but it doesnt really change it. this is killing me =/ --- In flexcoders@yahoogroups.com, "Rafael Faria" <[EMAIL PROTECTED]> wrote: > > Not really. Got an error as well. > > someone else can help me out?? > raf > > --- In flexcoders@yahoogroups.com, "Jim Hayes" <jim@> wrote: > > > > I think it's XML(dataProvider).descendants().(attributes("enabled") == > > "true") that you want ? Not checked it but I think it's pretty close at > > least. > > > > -----Original Message----- > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of Rafael Faria > > Sent: 20 February 2008 05:55 > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Tree descendants > > > > I'm trying to get the descendants from my XML which has the attribute > > "enabled = true" > > > > if i try > > > > XML(dataProvider).descendants().(@enabled = "true") > > > > i get an error " A term is undefined and has no properties." > > > > which is understandable because not every node has the enabled > > attribute. The question is how to get all that has the "enabled" > > attribute and is set true. > > > > > > ______________________________________________________________________ > > This communication is from Primal Pictures Ltd., a company > registered in England and Wales with registration No. 02622298 and > registered office: 4th Floor, Tennyson House, 159-165 Great Portland > Street, London, W1W 5PA, UK. VAT registration No. 648874577. > > > > This e-mail is confidential and may be privileged. It may be read, > copied and used only by the intended recipient. If you have received > it in error, please contact the sender immediately by return e-mail or > by telephoning +44(0)20 7637 1010. Please then delete the e-mail and > do not disclose its contents to any person. > > This email has been scanned for Primal Pictures by the MessageLabs > Email Security System. > > ______________________________________________________________________ > > >