Class Parser
The SAX parser class.
Inherited Members
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class Parser : DefaultHandler, IEntityResolver, IDTDHandler, IContentHandler, IErrorHandler, IScanHandler, IXMLReader, ILexicalHandler
Constructors
Name | Description |
---|---|
Parser() | Creates a new instance of Parser |
Fields
Name | Description |
---|---|
AUTO_DETECTOR_PROPERTY | Specifies the AutoDetector (for encoding detection) this Parser uses. |
BOGONS_EMPTY_FEATURE | A value of |
CDATA_ELEMENTS_FEATURE | A value of "true" indicates that the parser will treat CDATA elements specially. Normally true, since the input is by default HTML. |
DEFAULT_ATTRIBUTES_FEATURE | A value of |
EXTERNAL_GENERAL_ENTITIES_FEATURE | Reports whether this parser processes external general entities (it doe |
EXTERNAL_PARAMETER_ENTITIES_FEATURE | Reports whether this parser processes external parameter entities (it doesn't). |
IGNORABLE_WHITESPACE_FEATURE | A value of "true" indicates that the parser will transmit whitespace in element-only content via the SAX ignorableWhitespace callback. Normally this is not done, because HTML is an SGML application and SGML suppresses such whitespace. |
IGNORE_BOGONS_FEATURE | A value of |
IS_STANDALONE_FEATURE | May be examined only during a parse, after the startDocument() callback has been completed; read-only. The value is true if the document specified standalone="yes" in its XML declaration, and otherwise is false. (It's always false.) |
LEXICAL_HANDLER_PARAMETER_ENTITIES_FEATURE | A value of "true" indicates that the LexicalHandler will report the beginning and end of parameter entities (it won't). |
LEXICAL_HANDLER_PROPERTY | Used to see some syntax events that are essential in some applications: comments, CDATA delimiters, selected general entity inclusions, and the start and end of the DTD (and declaration of document element name). The Object must implement ILexicalHandler |
NAMESPACE_PREFIXES_FEATURE | A value of "true" indicates that XML qualified names (with prefixes) and attributes (including xmlns* attributes) will be available. We don't support this value. |
NAMESPACES_FEATURE | A value of "true" indicates namespace URIs and unprefixed local names for element and attribute names will be available. |
RESOLVE_DTD_URIS_FEATURE | A value of "true" indicates that system IDs in declarations will be absolutized (relative to their base URIs) before reporting. (This returns true but doesn't actually do anything.) |
RESTART_ELEMENTS_FEATURE | A value of |
ROOT_BOGONS_FEATURE | A value of |
SCANNER_PROPERTY | Specifies the Scanner object this Parser uses. |
SCHEMA_PROPERTY | Specifies the Schema object this Parser uses. |
STRING_INTERNING_FEATURE | Has a value of "true" if all XML names (for elements,
prefixes, attributes, entities, notations, and local
names), as well as Namespace URIs, will have been interned
using Intern(String). This supports fast testing of
equality/inequality against string constants, rather than forcing
slower calls to |
TRANSLATE_COLONS_FEATURE | A value of |
UNICODE_NORMALIZATION_CHECKING_FEATURE | Controls whether the parser reports Unicode normalization errors as described in section 2.13 and Appendix B of the XML 1.1 Recommendation. (We don't normalize.) |
USE_ATTRIBUTES2_FEATURE | Returns "true" if the Attributes objects passed by this parser in StartElement(String, String, String, IAttributes) implement the IAttributes2 interface. (They don't.) |
USE_ENTITY_RESOLVER2_FEATURE | Returns "true" if, when setEntityResolver is given an object implementing the IEntityResolver2 interface, those new methods will be used. (They won't be.) |
USE_LOCATOR2_FEATURE | Returns "true" if the Locator objects passed by this parser parser in SetDocumentLocator(ILocator) implement the ILocator2 interface. (They don't.) |
VALIDATION_FEATURE | Controls whether the parser is reporting all validity errors (We don't report any validity errors.) |
XML11_FEATURE | Returns |
XMLNS_URIS_FEATURE | Controls whether, when the namespace-prefixes feature is set, the parser treats namespace declaration attributes as being in the http://www.w3.org/2000/xmlns/ namespace. (It doesn't.) |
Properties
Name | Description |
---|---|
ContentHandler | |
DTDHandler | |
EntityResolver | |
ErrorHandler |