This is the non validating parser configuration. It extends the basic
configuration with the set of following parser components:
Document scanner, DTD scanner, namespace binder, document handler.
Xerces parser that uses this configuration is notconformant
non-validating XML processor, since conformant non-validating processor is required
to process "all the declarations they read in the internal DTD subset ... must use the information in those declarations to normalize attribute values,
include the replacement text of internal entities, and supply default attribute values".
author: Elena Litani, IBM version: $Id: NonValidatingConfiguration.java 447239 2006-09-18 05:08:26Z mrglavas $
cleanup() If the application decides to terminate parsing before the xml document
is fully parsed, the application should call this method to free any
resource allocated during parsing.
parse(boolean complete) Parses the document in a pull parsing fashion.
Parameters: complete - True if the pull parser should parse theremaining document completely.
Constructs a parser configuration using the specified symbol table and
grammar pool.
REVISIT:
Grammar pool will be updated when the new validation engine is
implemented.
Parameters: symbolTable - The symbol table to use. Parameters: grammarPool - The grammar pool to use.
Constructs a parser configuration using the specified symbol table,
grammar pool, and parent settings.
REVISIT:
Grammar pool will be updated when the new validation engine is
implemented.
Parameters: symbolTable - The symbol table to use. Parameters: grammarPool - The grammar pool to use. Parameters: parentSettings - The parent settings.
Check a feature. If feature is know and supported, this method simply
returns. Otherwise, the appropriate exception is thrown.
Parameters: featureId - The unique identifier (URI) of the feature. throws: XMLConfigurationException - Thrown for configuration error.In general, components shouldonly throw this exception ifit is reallya critical error.
Check a property. If the property is know and supported, this method
simply returns. Otherwise, the appropriate exception is thrown.
Parameters: propertyId - The unique identifier (URI) of the propertybeing set. throws: XMLConfigurationException - Thrown for configuration error.In general, components shouldonly throw this exception ifit is reallya critical error.
If the application decides to terminate parsing before the xml document
is fully parsed, the application should call this method to free any
resource allocated during parsing. For example, close all opened streams.
Parses the document in a pull parsing fashion.
Parameters: complete - True if the pull parser should parse theremaining document completely. True if there is more document to parse. exception: XNIException - Any XNI exception, possibly wrapping another exception. exception: IOException - An IO exception from the parser, possiblyfrom a byte stream or character streamsupplied by the parser. See Also:NonValidatingConfiguration.setInputSource
Sets the input source for the document to parse.
Parameters: inputSource - The document's input source. exception: XMLConfigurationException - Thrown if there is a configuration error when initializing theparser. exception: IOException - Thrown on I/O error. See Also:NonValidatingConfiguration.parse(boolean)
Set the locale to use for messages.
Parameters: locale - The locale object to use for localization of messages. exception: XNIException - Thrown if the parser does not support thespecified locale.