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
ParameterDescription
nameEntity name, % parameter entity name, or [dtd].
publicIdPublic identifier, or null.
baseURIBase URI, or null.
systemIdSystem 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")