Java XML Element Check isStartElement(final XMLStreamReader reader)

Here you can find the source of isStartElement(final XMLStreamReader reader)

Description

is Start Element

License

Open Source License

Declaration

public static boolean isStartElement(final XMLStreamReader reader) 

Method Source Code

//package com.java2s;
/********************************************************************************
 * Copyright (c) 2009 Regents of the University of Minnesota
 *
 * This Software was written at the Minnesota Supercomputing Institute
 * http://msi.umn.edu//from  w w  w  .  j a v a  2 s  .  c  o  m
 *
 * All rights reserved. The following statement of license applies
 * only to this file, and and not to the other files distributed with it
 * or derived therefrom.  This file is made available under the terms of
 * the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Minnesota Supercomputing Institute - initial API and implementation
 *******************************************************************************/

import javax.xml.stream.XMLStreamReader;

public class Main {
    public static boolean isStartElement(final XMLStreamReader reader) {
        return reader.getEventType() == XMLStreamReader.START_ELEMENT;
    }
}

Related

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