The problem was first of all mostly that i was trying to do
it dynamically, without really telling the name of the child that i
would like to remove.
So, if it was only this that needed to be done:
and the xml looks like
it would work. But now i tried to remove a node without
knowing the name of it.
but it works when i did like this:
var node : XML = XML( checkbox.data.node );
var nodeParent : XML = node.parent();
And it works!
I don't know if it's the best way, but it works and i'm