Interface IDeclHandler
SAX2 extension handler for DTD declaration events.
Assembly: Lucene.Net.Benchmark.dll
Syntax
public interface IDeclHandler
Remarks
This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY. See http://www.saxproject.org for further information.
This is an optional extension handler for SAX2 to provide more complete information about DTD declarations in an XML document. XML readers are not required to recognize this handler, and it is not part of core-only SAX2 distributions.
Note that data-related DTD declarations (unparsed entities and notations) are already reported through the IDTDHandler interface.
If you are using the declaration handler together with a lexical handler, all of the events will occur between the StartDTD(String, String, String) and the EndDTD() events.
To set the DeclHandler for an XML reader, use the SetProperty(String, Object) method with the property name http://xml.org/sax/properties/declaration-handler and an object implementing this interface (or null) as the value. If the reader does not report declaration events, it will throw a SAXNotRecognizedException when you attempt to register the handler.
Methods
Name | Description |
---|---|
AttributeDecl(String, String, String, String, String) | Report an attribute type declaration. |
ElementDecl(String, String) | Report an element type declaration. |
ExternalEntityDecl(String, String, String) | Report a parsed external entity declaration. |
InternalEntityDecl(String, String) | Report an internal entity declaration. |