private void moveToContent(){
  while (reader.getEventType() != XMLStreamConstants.CDATA && reader.getEventType() != XMLStreamConstants.START_ELEMENT && reader.getEventType() != XMLStreamConstants.END_ELEMENT && reader.getEventType() != XMLStreamConstants.ENTITY_REFERENCE && reader.getEventType() != XMLStreamConstants.CHARACTERS && reader.getEventType() != XMLStreamConstants.END_DOCUMENT)   try {
    reader.next();
  }
 catch (  XMLStreamException e) {
    return;
  }
}

private void moveToContent ( ) { while ( reader . getEventType ( ) != XMLStreamConstants . CDATA && reader . getEventType ( ) != XMLStreamConstants . START_ELEMENT && reader . getEventType ( ) != XMLStreamConstants . END_ELEMENT && reader . getEventType ( ) != XMLStreamConstants . ENTITY_REFERENCE && reader . getEventType ( ) != XMLStreamConstants . CHARACTERS && reader . getEventType ( ) != XMLStreamConstants . END_DOCUMENT ) try { reader . next ( ) ; } catch ( XMLStreamException e ) { return ; } }
checks whether the current node is a content ( non - white space text , cdata , element , endelement , entityreference , or endentity ) node . if the node is not a content node , the reader skips ahead to the next content node or end of file . it skips over nodes of the following type : processinginstruction , documenttype , comment , whitespace , or significantwhitespace .
