public void removeChildrenWithName ( String name ) { for ( int i = children . size ( ) - 1 ; i >= 0 ; i -- ) { if ( children . get ( i ) . name . equals ( name ) ) { children . remove ( i ) . parent = null ; } } }
Removes all children with the given element name .