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
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
: [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
4 matches
Mail list logo