org.xml.sax.ext.EntityResolver2.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 entity metadata.

Parameters

- name Entity name, `%` parameter entity name, or `[dtd]`.
- publicId Public identifier, or `null`.
- baseURI Base URI used to resolve relative identifiers.
- systemId System identifier.

Returns

Alternative input source, or `null` for default resolution.

Throws

- SAXException if entity resolution fails.
- IOException if an I/O resource cannot be opened.

Example

    source = resolver.resolveEntity("[dtd]", publicId, baseURI, systemId)