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

[flexcoders] e4x challenge

2009-04-22 Thread Michael Slinn
I would like to filter out all elements with type=file from the following XML. That turns out to be rather difficult because node/ elements are nested. Any suggestions? ?xml version=1.0 encoding=UTF-8? node name=classes type=dir uri=file:/classes/ node name=spring-beans-2.0.dtd type=file

RE: [flexcoders] e4x challenge

2009-04-22 Thread Tracy Spratt
: [flexcoders] e4x challenge I would like to filter out all elements with type=file from the following XML. That turns out to be rather difficult because node/ elements are nested. Any suggestions? ?xml version=1.0 encoding=UTF-8? node name=classes type=dir uri=file:/classes/ node name=spring