If you want to select them, then:
XMLList list = xml.descendants().(@type = file)
otherwise, i'd still get that list and then loop through it and delete each
by doing (exact code might need some cleaning):
for (each item:XML in list) {
delete item.parent()[item.childIndex()];
}
On Wed,
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] e4x challenge
If you want to select them, then:
XMLList list = xml.descendants().(@type = file)
otherwise, i'd still get that list and then loop through it and delete each
by doing (exact code might need some cleaning):
for (each
E4x is great for returning XMLLists but you are really asking form a
transformation, right? You want the same structure, but without the nodes
where type=file, correct?
Maybe someone else will have a better idea, but if I needed this I would
just write a recursive function to walk the
3 matches
Mail list logo