List of utility methods to do XML Node Child Remove
NodeList childNodes = parent.getChildNodes(); while (childNodes.getLength() > 0) { parent.removeChild(childNodes.item(0));