klyn.io.xml.sax.DefaultHandler2.resolveEntity
method
public resolveEntity(name as String, publicId as String, baseURI as String, systemId as String) as InputSource throws SAXException, IOException:
Description

Resolves an external entity using SAX2 metadata.

Parameters
  • name Entity name, `%` parameter entity name, or `[dtd]`.
  • publicId Public identifier, or `null`.
  • baseURI Base URI, or `null`.
  • systemId System identifier, or `null`.
Returns

Always null so the parser can use its default behavior.

Throws
  • SAXException if the SAX handler rejects the event or cannot process the reported XML structure.
  • IOException if the resource is closed, inaccessible, not a valid file, or the underlying I/O operation fails.
Example
source = handler.resolveEntity("[dtd]", null, "file:/tmp/doc.xml", "doc.dtd")