* (external unparsed?) entities contained in the DTD, so can not
* use the constructor that just takes String..
*/
if (reader instanceof MXParser) {
MXParser mxp = (MXParser) reader;
DTDEvent evt = new DTDEvent(reader.getText());
evt.setNotations((List) mxp.getProperty(MXParser.FEATURE_STAX_NOTATIONS));
evt.setEntities((List) mxp.getProperty(MXParser.FEATURE_STAX_ENTITIES));
return evt;
}
// Blah. Using some other reader...
return factory.createDTD(reader.getText());