Here you can find the source of removeChild(final Node node, final Node child)
public static final void removeChild(final Node node, final Node child)
//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*/ } } }