Java XML Child Remove All removeAllChildren(Node node)

Here you can find the source of removeAllChildren(Node node)

Description

remove All Children

License

Open Source License

Declaration

public static void removeAllChildren(Node node) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Node;

public class Main {
    public static void removeAllChildren(Node node) {
        while (node.getFirstChild() != null)
            node.removeChild(node.getFirstChild());
    }/* w ww. j a v  a 2 s . c om*/
}

Related

  1. removeAllChildren(Element deps)
  2. removeAllChildren(Element node, String elementName)
  3. removeAllChildren(final Element element)
  4. removeAllChildren(final Node node)
  5. removeAllChildren(Node node)
  6. removeAllChildren(Node node)
  7. removeAllChildren(Node node)
  8. removeAllChildren(Node node)
  9. removeAllChildren(Node node)