/** * This will signify that a DTD is being parsed, and can be used to ensure that comments and other * lexical structures in the DTD are not added to the JDOM <code>Document</code> object. * * @param name <code>String</code> name of element listed in DTD * @param publicID <code>String</code> public ID of DTD * @param systemID <code>String</code> system ID of DTD */ public void startDTD(String name, String publicID, String systemID) throws SAXException { flushCharacters(); // Is this needed here? factory.addContent(document, factory.docType(name, publicID, systemID)); inDTD = true; inInternalSubset = true; }