Allows the parser to resolve external entities.
Function resolveEntity(strPublicId As String, strSystemId As String)
HRESULT resolveEntity( [in] const wchar_t * pwchPublicId, [in] const wchar_t * pwchSystemId, [out,retval] VARIANT * pvarInput);
parse
method.Allow the application to resolve external entities.
When ISAXEntityResolver
or IVBSAXEntityResolver
is implemented, the SAX reader will call this method before opening any external entity except the top-level document entity. External entities handled by this method can include the following: the external DTD subset, external entities referenced within the DTD, and external entities referenced within the document element. The application can request that the parser resolve the entity itself, that it use an alternative URI, or that it use an entirely different input source.
Application writers can use the resolveEntity
method to perform the following tasks:
If the system identifier is a URL, the SAX reader must resolve it fully before reporting it to the application.
Note For this method, the Java implementation requires theInputSource
interface, which is not included in this implementation. Instead, variant is used as the data type for method output. Output currently can represent be either a binary stream (IStream) or, potentially, string data. User feedback is appreciated during prerelease. If important usage cases are found,InputSource
might be included in future releases.
To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
parse Method | unparsedEntityDecl Method
Applies to: ISAXEntityResolver Interface