Java XML Child Remove removeChildren(Node e)

Here you can find the source of removeChildren(Node e)

Description

remove Children

License

Open Source License

Declaration

public static void removeChildren(Node e) 

Method Source Code

//package com.java2s;
import org.w3c.dom.*;

public class Main {
    public static void removeChildren(Node e) {
        NodeList list = e.getChildNodes();
        for (int i = 0; i < list.getLength(); i++) {
            Node n = list.item(i);
            e.removeChild(n);/*w ww  .  ja  v  a2 s .c  o m*/
        }
    }
}

Related

  1. removeChildren(Element element)
  2. removeChildren(Element element)
  3. removeChildren(Element parent)
  4. removeChildren(final Node node)
  5. removeChildren(Node aNode)
  6. removeChildren(Node node)
  7. removeChildren(Node node)
  8. removeChildren(Node node)
  9. removeChildren(Node node)