[flexcoders] E4x finding virtual leaf nodes

2009-11-24 Thread mattgarland2000
My XML is a series of nested activities. I want to find LEAF activities, that 
is, activities without activity descendents.

Something like this: 

xml..activity.(descendents('activity').length()==0)

But of course that does not work. I've always been unsure about the scope in 
predicate filter...



Re: [flexcoders] E4x finding virtual leaf nodes

2009-11-24 Thread Tino Dai
How about something like this?

xml..activity.children.length() == 0. I think that would do it

-Tino


On Tue, Nov 24, 2009 at 6:00 PM, mattgarland2000 al...@pet-theory.comwrote:



 My XML is a series of nested activities. I want to find LEAF activities,
 that is, activities without activity descendents.

 Something like this:

 xml..activity.(descendents('activity').length()==0)

 But of course that does not work. I've always been unsure about the scope
 in predicate filter...