Java XML Child Remove removeChild(NodeList nodes)

Here you can find the source of removeChild(NodeList nodes)

Description

remove Child

License

Open Source License

Declaration

private static void removeChild(NodeList nodes) 

Method Source Code

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

import org.w3c.dom.NodeList;

public class Main {
    private static void removeChild(NodeList nodes) {

        for (int i = 0; i < nodes.getLength(); i++) {
            nodes.item(i).getParentNode().removeChild(nodes.item(i));
        }/*  w w  w  .j  a  va  2  s  .  co m*/
    }
}

Related

  1. removeChild(Element parent, String name)
  2. removeChild(final Node node, final Node child)
  3. removeChild(Node xmlNode, String name, boolean ignoreCase)
  4. removeChildElements(Element parent)
  5. removeChildNodes(Node node)
  6. removeChildNodes(Node node)
  7. removeChildNodes(Node node, short... ignoreNodeTypes)