Java XML Node Clone clone(final N node)

Here you can find the source of clone(final N node)

Description

clone

License

Apache License

Declaration

@SuppressWarnings("unchecked")
    private static <N extends Node> N clone(final N node) 

Method Source Code

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

import org.w3c.dom.Node;

public class Main {
    @SuppressWarnings("unchecked")
    private static <N extends Node> N clone(final N node) {
        return (N) node.cloneNode(true);
    }/*from  w  w w  .  ja v  a 2  s  .c  o  m*/
}

Related

  1. cloneNode(Node node)
  2. cloneNode(Node node, Document doc)
  3. cloneNode(Node node, Document target, boolean deep)
  4. copyGraphicFiles(String baseFilename, String currentDirectory, String fileSeparator, NodeIterator graphicsElements)