Name
EntityResolver
Synopsis
This handler interface is used to allow the application to control how external entities are loaded. This can be used to support the use of an application-level cache or use one or more of the techniques for mapping public identifiers to system identifiers.
resolveEntity(publicId, systemId)The parser calls this method to convert the identifiers for an external entity into a system identifier to load. The
systemIdparameter is the URL provided in an entity declaration, andpublicIdis the public identifier, orNoneif there isn’t one. This method should return a string giving a new system identifier as a string or an object that supports theInputSourceinterface.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access