throws XMLStreamException {
if (parser != null) {
try {
return parser.getTextCharacters(sourceStart, target, targetStart, length);
} catch (XMLStreamException e) {
throw new OMStreamingException(e);
}
} else {
if (currentEvent == DTD) {
// Not sure if that conforms to the StAX spec, but it is what Woodstox does
throw new IllegalStateException();