Java XML Child Remove removeChild(final Node node, final Node child)

Here you can find the source of removeChild(final Node node, final Node child)

Description

remove Child

License

Apache License

Declaration

public static final void removeChild(final Node node, final Node child) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import org.w3c.dom.Node;

public class Main {
    public static final void removeChild(final Node node, final Node child) {
        if (node != null) {
            node.removeChild(child);/* ww  w .  ja  v  a 2s.co  m*/
        }
    }
}

Related

  1. removeChild(Element parent, String name)
  2. removeChild(Node xmlNode, String name, boolean ignoreCase)
  3. removeChild(NodeList nodes)
  4. removeChildElements(Element parent)
  5. removeChildNodes(Node node)