Here you can find the source of isTableNodes(Element e)
public static boolean isTableNodes(Element e)
//package com.java2s; import org.w3c.dom.Element; public class Main { private static final String[] TABLE_NODES = { "TR", "TD" }; public static boolean isTableNodes(Element e) { for (String s : TABLE_NODES) { if (e.getTagName().equals(s)) { return true; }/*from w w w .j a v a 2 s . c om*/ } return false; } }