code: public boolean isWhiteSpace() {
  		switch (getEventType()) {
  		case XMLStreamConstants.CHARACTERS:
  			return this.characters.toString().trim().length() == 0;
  		case XMLStreamConstants.CDATA:
  			return false;
  		case XMLStreamConstants.COMMENT:
  			return false;
  		case XMLStreamConstants.SPACE:
  			return true;
  		default:
  			return false;
  		}
  	}
docs: /*
  Returns true if the cursor points to a character data event that consists
  of all whitespace
  
  (non-Javadoc)
  
  @see javax.xml.stream.XMLStreamReader#isWhiteSpace()