This method is intended to report the end of the DOCTYPE declaration; if the document has no DOCTYPE declaration, this method will not be invoked.
137138139140141142143144145146147
@Override public void writeDtd(final DtdName name, final DtdPublicId publicId, final DtdSystemId systemId) throws XmlWriteException { try { transformerHandler.startDTD(name.value, publicId.value, systemId.value); transformerHandler.endDTD(); } catch (SAXException e) { throw new XmlWriteException("Failed writing DTD to XML", e); } } });
491492493494495496497498499500501
xml = new XMLWriter(out, format); xml.startDocument(); xml.startDTD("catalogs", PUBLIC_ID, SYSTEM_ID); xml.endDTD(); _saveCatalogs(xml, catalogs); xml.endDocument(); } finally {
241242243244245246247248249250251
} else if (event == STATE_START_DTD && lexicalHandler != null) { lexicalHandler.startDTD((String)events.get(n,1), (String)events.get(n,2), (String)events.get(n,3)); } else if (event == STATE_END_DTD && lexicalHandler != null) { lexicalHandler.endDTD(); } else if (event == STATE_START_ENTITY && lexicalHandler != null) { lexicalHandler.startEntity((String)events.get(n,1)); } else if (event == STATE_END_ENTITY && lexicalHandler != null) {
373374375376377378379380381382383
ths=(ThreeString) args.nextElement(); lh.startDTD(ths.first,ths.second,ths.third); } } else if (ENDDTD.equals(type)) { if(lh!=null) { lh.endDTD(); } } else if (STARTENTITY.equals(type)) { if(lh!=null) { String n=(String) args.nextElement(); lh.startEntity(n);
200201202203204205206207208209210
239240241242243244245246247248249
206207208209210211212213214215216