Interface ILexicalHandler
SAX2 extension handler for lexical events.
Assembly: Lucene.Net.Benchmark.dll
Syntax
public interface ILexicalHandler
Remarks
This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY. Seehttp://www.saxproject.org for further information.
This is an optional extension handler for SAX2 to provide lexical information about an XML document, such as comments and CDATA section boundaries. XML readers are not required to recognize this handler, and it is not part of core-only SAX2 distributions.
The events in the lexical handler apply to the entire document, not just to the document element, and all lexical handler events must appear between the content handler's StartDocument and EndDocument events.
To set the LexicalHandler for an XML reader, use the SetProperty(String, Object) method with the property name http://xml.org/sax/properties/lexical-handler and an object implementing this interface (or null) as the value. If the reader does not report lexical events, it will throw a SAXNotRecognizedException when you attempt to register the handler.
Methods
Name | Description |
---|---|
Comment(Char[], Int32, Int32) | Report an XML comment anywhere in the document. This callback will be used for comments inside or outside the document element, including comments in the external DTD subset(if read). Comments in the DTD must be properly nested inside start/endDTD and start/endEntity events(if used). |
EndCDATA() | Report the end of a CDATA section. |
EndDTD() | Report the end of DTD declarations. This method is intended to report the end of the DOCTYPE declaration; if the document has no DOCTYPE declaration, this method will not be invoked. |
EndEntity(String) | Report the end of an entity. |
StartCDATA() | Report the start of a CDATA section. |
StartDTD(String, String, String) | Report the start of DTD declarations, if any. |
StartEntity(String) | Report the beginning of some internal and external XML entities. |