Code example for DTDHandler

Methods: unparsedEntityDecl

0
				  String publicId,
				  String systemId,
				  String notationName) 
    throws SAXException { 
    allowXMLCatalogPI = false;
    if (dtdHandler != null) {
      dtdHandler.unparsedEntityDecl (name, publicId, systemId, notationName);
    } 
  } 
 
  /** 
   * Implements the <code>resolveEntity</code> method 
   * for the SAX interface, using an underlying CatalogResolver 
   * to do the real work. 
   */ 
  public InputSource resolveEntity (String publicId, String systemId) {
    allowXMLCatalogPI = false;
    String resolved = catalogResolver.getResolvedEntity(publicId, systemId);
 
    if (resolved == null && piCatalogResolver != null) {
      resolved = piCatalogResolver.getResolvedEntity(publicId, systemId);