code: 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;
              }
          }
      }
docs: Removes all children with the given element name.
  @param name the element name