![]() | InDesign SDK 20.5 |
#include <ISAXEntityResolver.h>

Public Types | |
| enum | { kDefaultIID = IID_ISAXENTITYRESOLVER } |
Public Member Functions | |
| virtual IPMStream * | ResolveEntity (const WideString &publicID, const WideString &systemID)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Basic interface for resolving entities
If a SAX client requires validation with external DTDs, or if the client needs to implement customized handling for external entities, it must implement this interface and register an instance with the SAX parser using the parser's setEntityResolver method.
The parser will then allow the application to intercept any external entities (including the external DTD subset and external parameter entities, if any) before including them.
SAX clients that do not require validation need not implement nor register this handler.
The client can also use this interface to redirect system identifiers to local URIs or to look up replacements in a catalog (possibly by using the public identifier).
| pure virtual |
Resolve entity
The parser will call this method before opening any external entity (including the external DTD subset, external entities referenced within the DTD, and external entities referenced within the document element).
Application writers can use this method to redirect external system identifiers to secure and/or local URIs, to look up public identifiers in a catalogue, or to read an entity from a file or database.
| publicID | The public identifier of the external entity being referenced. The string will be invalid if no identifier was supplied. |
| systemID | The system identifier of the external entity being referenced. |
Implemented in XCatHndEntityResolver.