Unicorn XML Toolkit
Version 1.00.00

Namespace Sxp
Class IEntityResolver

class IEntityResolver: public CInterface {
public:
    virtual ~IEntityResolver();
public:
    virtual XInputSource ResolveEntity(
        const CString &strPublicId,
        const CString &strSystemId) = 0;
    };

The abstract interface for resolving entities.

If an SXP application needs to implement customized handling for external entities, it must implement this interface and register an instance with the SXP parser using the IParser::SetEntityResolver method. The XML parser will then allow the application to intercept any external entities before including them.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
Constructor/Destructor Summary
~IEntityResolver ();
����������Destroys the entity resolver.

Function Summary
XInputSource ResolveEntity (const CString &strPublicId, const CString &strSystemId);
����������Allows an application to resolve external entities.

Constructor/Destructor Detail

~IEntityResolver

virtual ~IEntityResolver();

Destroys the entity resolver.

Function Detail

ResolveEntity

virtual XInputSource ResolveEntity(
    const CString &strPublicId,
    const CString &strSystemId) = 0;

Allows an application to resolve external entities.

Parameters:
strPublicId - the public identifier of the external entity being referenced, or the empty string if none was supplied
strSystemId - the system identifier of the external entity being referenced
Returns:
the object describing the new input source, or NULL to request that the parser open a regular URI connection to the system identifier

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.