ignorableWarning Method

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Reference

ignorableWarning Method

Receives notification of a warning.

Note   This method is not called in the current Simple API for XML (SAX2) implementation.
[Visual Basic]

Implementation Syntax

Sub ignorableWarning(oLocator As IVBSAXLocator, _
  strErrorMessage As String, nErrorCode As Long)

Parameters

oLocator
The Locator object, which contains line and column numbers of the error. SystemID and PublicID may be unavailable for particular data sources, such as character buffer.
strErrorMessage
The error information.
nErrorCode
The error code.

Remarks

The reader uses this method to report conditions that are not errors as defined by the XML 1.0 Recommendation. The default behavior is to take no action. The reader must continue to provide normal parsing events after invoking this method. It should still be possible for the application to process the document through to the end.

[C/C++]

Syntax

HRESULT ignorableWarning(
   [in] ISAXLocator * pLocator, 
   [in] const wchar_t * pwchErrorMessage,
   [in] HRESULT hrErrorCode);

Parameters

pLocator [in]
The Locator object, which contains line and column numbers of the error. SystemID and PublicID may be unavailable for particular data sources, such as character buffer.
pwchErrorMessage [in]
The error information.
hrErrorCode [in]
The error code identifying the reason for the error.

Return Values

S_OK
The value returned when the error is handled and parsing may proceed.
Other
The value returned if parsing should be aborted.

To view reference information for Visual Basic or C/C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

errorHandler Property (Visual Basic) | putErrorHandler Method (C/C++) | ISAXLocator/IVBSAXLocator Interface

Applies to: ISAXErrorHandler/IVBSAXErrorHandler Interface