Nice. I see what you've done there (instead of "var result:XMLList =
rootXML.group.name;" as the first line which would have been rather
inefficient).

I suppose this general approach doesnt work if I want to do things like
lowercase or substring matching...?


Daniel Freiman wrote:
> 
> You're correct, but you can also do the filtering in a loop to be dynamic:
> 
> var result:XMLList = rootXML.group.(name.text().contains("fred"));
> for each (filterName) { // psuedo-code
>    result = result.(name.text().contains(filterName));
> }
> return result;
> 
> - Daniel Freiman
> 

-- 
View this message in context: 
http://www.nabble.com/e4x-problem---filtering-elements-based-on-multiple-child-conditions-tp19604364p19610183.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to