Share via


internalEntityDecl Method

 

Receives/reports a parsed internal entity declaration. Only the effective (first) declaration for each entity is reported.

All parameter entities in the value are expanded. General entities are not expanded.

Visual Basic Implementation Syntax

Sub internalEntityDecl(strName As String, strValue As String)  

Parameters

strName
The name of the entity. If it is a parameter entity, the name begins with '%'.

strValue
The replacement text of the entity.

Return Values

If failed, the DeclHandler raises a trappable error.

C/C++ Syntax

HRESULT internalEntityDecl(  
   [in] const wchar_t * pwchName,  
   [in] int cchName,  
   [in] const wchar_t * pwchValue,  
   [in] int cchValue);  

Parameters

pwchName[in]
The name of the entity. If it is a parameter entity, the name begins with a "%".

cchName[in]
The length of the name string of the entity.

pwchValue [in]
The replacement text of the entity.

cchValue [in]
The length of the replacement text string.

Return Values

S_OK
The value returned if no errors are reported.

E_FAIL
The value returned if the parse operation should be aborted.

Versioning

Implemented in: MSXML 3.0 and later

Applies to

ISAXDeclHandler Interface

See Also

externalEntityDecl Method