Java XML Parse Stream getNextStartElement(XMLStreamReader parser)

Here you can find the source of getNextStartElement(XMLStreamReader parser)

Description

get Next Start Element

License

Open Source License

Declaration

public static void getNextStartElement(XMLStreamReader parser) throws XMLStreamException 

Method Source Code

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

import javax.xml.stream.XMLStreamConstants;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;

public class Main {
    public static void getNextStartElement(XMLStreamReader parser) throws XMLStreamException {
        while (parser.hasNext()) {
            int event = parser.next();
            if (event == XMLStreamConstants.START_ELEMENT) {
                return;
            }/*from   w w w  . j a v a2  s. c  om*/
        }
    }
}

Related

  1. getParamStream(XMLOutputFactory outputFactory, XMLEventFactory eventFactory, XMLEventReader parser, XMLEvent paramEvent)
  2. parse(DefaultHandler handler, InputStream in)
  3. parse(final InputStream in)
  4. parse(final InputStream inputStream)