Yesterday I needed to rid an XML node of all child nodes using ActionScript3's E4X API. Since I'm still completely new to AS3 (and AS in general) as well as E4X I first thought the solution for this would be close to how you do it is done in DOM by just iterating over all children and executing node.removeChild(child), but for some reason, doing it this way didn't always work out for me.