I want to delete all nodes in an XML/XMLList that match a filter.
Something like:
delete myxml..employee.(@name == "Bob");
However I get an error saying you can't use delete on an XMLList. I
tried:
for each (var node:XML in myxmllist) {
delete node;
}
But I get an error about not being able to delete a staticly assigned
variable or something like that. There also doesn't seem to be a
node.remove() method or anything handy like that. Actionscript's E4X
implementation seems to think that you would only want to add nodes to
an XML. Any ideas?
Thanks,
Aaron