This method of the Document class removes the specified child Element from the Document class.
public void removeChild(Element elem);
removeChild(Element) in ElementImpl.