This may work for you?
xml.child("*").(new RegExp("dog|bird").test(name()))
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
2009/12/1 Mendelsohn, Michael <[email protected]>:
> Thanks for replying Jason. I'd do that, but I'm also trying to preserve the
> order in which things occur, like given this xml...
> <pets>
> <dog/>
> <cat/>
> <snake/>
> <dog/>
> <dog/>
> <ant/>
> <bird/>
> <dog/>
> </pets>
>
> ...then, I'd traverse the resulting XMLList, and using a switch statement,
> render things a certain way on the stage, but keeping the order.
> So, in other words, only the dog and bird tags should render, and in order
> that they occur.
>
> - Michael M.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders