Java XML Node Remove removeNode(Node node)

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

Description

Removes a node from its tree.

License

Apache License

Declaration

public static void removeNode(Node node) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License"); you may not

import org.w3c.dom.Node;

public class Main {
    /** Removes a node from its tree. */
    public static void removeNode(Node node) {
        node.getParentNode().removeChild(node);
    }//from   w  ww.  j  a va  2 s. com
}

Related

  1. removeNamedItem(final NamedNodeMap nodeMap, final String name)
  2. removeNamespaceDeclarations(Node node, String... namespaces)
  3. removeNode(final Node node)
  4. removeNode(Node node)
  5. removeNode(Node node)
  6. removeNodeFromParent(Node node)
  7. removeNodes(Element parent, NodeList elements)
  8. removeNodesByName(Node node, String name)
  9. removePreviousWhiteSpace(Node node)