Java XML Element Check isTableNodes(Element e)

Here you can find the source of isTableNodes(Element e)

Description

is Table Nodes

License

Open Source License

Declaration

public static boolean isTableNodes(Element e) 

Method Source Code

//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;
    }
}

Related

  1. isNil(Element element)
  2. isSetPrefixBeforeStartElement( XMLStreamWriter writer)
  3. isSetPrefixBeforeStartElement(XMLStreamWriter writer)
  4. isStartElement(final XMLStreamReader reader)
  5. isStartElement(XMLStreamReader xmlRdr, String tagName)
  6. isTextOnly(final Element element)
  7. isTrue(Element el, String tagName, boolean defaultResult)
  8. isUIParameter(Element ele)
  9. isUnder5_6(Element root)