java/xmlreader/src/main/java/be/bosa/dt/best/xmlreader/AbstractXMLReader.java
/**
	 * Just read the root element
	 * 
	 * @param reader
	 * @throws XMLStreamException 
	 */
Just read the root element

@param reader
@throws XMLStreamException
Just read the root element @param reader @throws XMLStreamException
protected void start(XMLEventReader reader) throws XMLStreamException {
		while(reader.hasNext()) {
			XMLEvent peek = reader.peek();
			if (peek.isStartElement()) {
				QName el = peek.asStartElement().getName();
				if (el.equals(getRoot())) {
					return;
				}
			}
			reader.nextEvent();
		}
	}
protected void start ( XMLEventReader reader ) throws XMLStreamException { while ( reader . hasNext ( ) ) { XMLEvent peek = reader . peek ( ) ; if ( peek . isStartElement ( ) ) { QName el = peek . asStartElement ( ) . getName ( ) ; if ( el . equals ( getRoot ( ) ) ) { return ; } } reader . nextEvent ( ) ; } }
Just read the root element
Just read the root element