public String getElementText() throws XMLStreamException {
if (parser != null) {
try {
return parser.getElementText();
} catch (XMLStreamException e) {
throw new OMStreamingException(e);
}
} else {
///////////////////////////////////////////////////////
//// Code block directly from the API documentation ///
if (getEventType() != XMLStreamConstants.START_ELEMENT) {