public String getElementText() throws XMLStreamException {
if (parser != null) {
try {
return parser.getElementText();
} catch (XMLStreamException e) {
throw new OMStreamingException(e);
}
} else {
if (currentNode.getType() == OMNode.ELEMENT_NODE) {
return ((OMElement)currentNode).getText();
}else if (currentNode.getType() == OMNode.TEXT_NODE){