@Override public XMLEvent nextEvent() throws XMLStreamException {
  log.log(Level.FINE,"nextEvent()");
  currentEvent=nextEvent;
  if (currentEvent.getEventType() != XMLStreamConstants.END_DOCUMENT) {
    nextEvent=constructEvent(stream.next(),stream);
  }
 else {
    nextEvent=null;
  }
  log.log(Level.FINE,"nextEvent(): {0}",currentEvent);
  return currentEvent;
}

@ Override public XMLEvent nextEvent ( ) throws XMLStreamException { log . log ( Level . FINE , "nextEvent()" ) ; currentEvent = nextEvent ; if ( currentEvent . getEventType ( ) != XMLStreamConstants . END_DOCUMENT ) { nextEvent = constructEvent ( stream . next ( ) , stream ) ; } else { nextEvent = null ; } log . log ( Level . FINE , "nextEvent(): {0}" , currentEvent ) ; return currentEvent ; }
get the next xmlevent
