@Override public DTD2 createDTD(String rootName, String sysId, String pubId, String intSubset, Object processedDTD) { return new DTDEventImpl(mLocation, rootName, sysId, pubId, intSubset, processedDTD); }
/** * Note: constructing DTD events this way means that there will be no * internal presentation of actual DTD; no parsing is implied by * construction. */ @Override public DTD createDTD(String dtd) { return new DTDEventImpl(mLocation, dtd); }
@Override public DTD2 createDTD(String rootName, String sysId, String pubId, String intSubset) { return new DTDEventImpl(mLocation, rootName, sysId, pubId, intSubset, null); }
protected DTD createDTD(XMLStreamReader r, Location loc) throws XMLStreamException { // Not sure if we really need this defensive coding but... if (r instanceof XMLStreamReader2) { XMLStreamReader2 sr2 = (XMLStreamReader2) r; DTDInfo dtd = sr2.getDTDInfo(); return new DTDEventImpl (loc, dtd.getDTDRootName(), dtd.getDTDSystemId(), dtd.getDTDPublicId(), dtd.getDTDInternalSubset(), dtd.getProcessedDTD()); } /* No way to get all information... the real big problem is * that of how to access root name: it's obligatory for * DOCTYPE construct. :-/ */ return new DTDEventImpl(loc, null, r.getText()); }