Receives notification of a skipped entity. The skippedEntity
method is invoked for each entity skipped. The reader may skip entities if they have not been seen in the declarations. An example of this is when an entity is declared in an external DTD subset. The reader may skip external entities, depending on the values of the "http://xml.org/sax/features/external-general-entities"
and "http://xml.org/sax/features/external-parameter-entities"
features.
The skippedEntity
method is also called in the case of an external DTD declaration. For example:
<!DOCTYPE xyz SYSTEM "http://…">
Sub skippedEntity(strName As String)
If failed, the ContentHandler
raises a trappable error.
The following example shows how to use the skippedEntity
method to pass log event information to a text box (Text2) on a form (Form1). This informs the user that entity references in the document were skipped and not resolved by the reader during parsing.
Private Sub IVBSAXContentHandler_skippedEntity(strName As String) Dim msg As String Select Case strName Case "[dtd]" msg = "Reference to external DTD skipped." & vbCrLf Case Else msg = "Entity reference {" & strName & "} skipped." & vbCrLf End Select Form1.Text2.Text = Form1.Text2.Text & msg End Sub
HRESULT skippedEntity( [in] const wchar_t * pwchName, [in] int cchName);
To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
Applies to: ISAXContentHandler/IVBSAXContentHandler Interface