code: @Override
    public void removeChildren(Element node) {
  
      NodeList children = node.getChildNodes();
      for (int i = (children.getLength() - 1); i >= 0; i--) {
        node.removeChild(children.item(i));
      }
    }
docs: This method removes all {@link Node#getChildNodes() child nodes} of the given node.
  
  @param node is the node to clean of children.