Java XML Element Check isStartElement(XMLStreamReader xmlRdr, String tagName)

Here you can find the source of isStartElement(XMLStreamReader xmlRdr, String tagName)

Description

is Start Element

License

Open Source License

Declaration

public static boolean isStartElement(XMLStreamReader xmlRdr, String tagName) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.xml.stream.XMLStreamReader;

public class Main {
    public static boolean isStartElement(XMLStreamReader xmlRdr, String tagName) {
        //return isElement(xmlRdr, XMLStreamConstants.START_ELEMENT, tagName);

        return xmlRdr.isStartElement() && xmlRdr.getLocalName().equals(tagName);
    }/*w ww  .ja  v a 2s. c  om*/
}

Related

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