code: protected void advancePastWhitespace(XMLEventReader reader)
              throws XMLStreamException {
          XMLEvent next = reader.peek();
          while (next.isCharacters() && next.asCharacters().isWhiteSpace()) {
              reader.nextEvent();
              next = reader.peek();
          }
      }
docs: Advance past any white space. Leave the reader positioned before the next
  tag (or non-white-space event).