Re: [flexcoders] e4x challenge

2009-04-23 Thread Daniel Freiman
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,

RE: [flexcoders] e4x challenge

2009-04-23 Thread Tracy Spratt
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

RE: [flexcoders] e4x challenge

2009-04-22 Thread Tracy Spratt
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