Java Utililty Methods XML Child Remove

List of utility methods to do XML Child Remove

Description

The list of methods to do XML Child Remove are organized into topic(s).

Method

voidremoveChilds(Node node)
remove Childs
NodeList nl = node.getChildNodes();
for (int i = 0; i < nl.getLength(); i++)
    node.removeChild(nl.item(i));
booleanremoveNode(Node parent, Node child)
remove Node
if (parent == null || child == null)
    return false;
try {
    parent.removeChild(child);
    return true;
} catch (DOMException ex) {
    return false;