Here you can find the source of getNextStartElement(XMLStreamReader parser)
public static void getNextStartElement(XMLStreamReader parser) throws XMLStreamException
//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*/ } } }