AS3 Delete child node from XML by child value
问题 I've got an XML with a structure like the following; <items> <item>5</item> <item>3006</item> <item>25</item> <item>458</item> <item>15</item> <item>78</item> </items> How do I delete the item with the value 458. Just to clarify this, I don't know the index of that item, so simply calling delete items[index] won't do here. I have to delete by value. Any hints? 回答1: Using e4x filtering and the possibilities of using function inside the filter you can delete the node you want : xml.item.(text()