Here you can find the source of isInfoNode(Element e)
Parameter | Description |
---|---|
e | a parameter |
public static boolean isInfoNode(Element e)
//package com.java2s; import org.w3c.dom.Element; public class Main { private static final String[] INFO_NODE = { "P", "SPAN", "H1", "H2", "B", "I" }; /**/*from w ww. j a va2 s. co m*/ * is this Node is information node? * * @param e * @return Whether this Node is information node */ public static boolean isInfoNode(Element e) { for (String s : INFO_NODE) { if (e.getTagName().equals(s)) { return true; } } return false; } }