Here you can find the source of isInsertNode(Node n)
public static boolean isInsertNode(Node n)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Node; public class Main { public static boolean isInsertNode(Node n) { return n.getNodeName().equals("insert"); }// w ww. j a v a 2s . c om }