Here you can find the source of is(final Element e, final String tag)
public static boolean is(final Element e, final String tag)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Element; public class Main { public static boolean is(final Element e, final String tag) { return e.getTagName().equalsIgnoreCase(tag); }/*from w ww. j a v a2 s.c o m*/ }