public class

XMLNSDTDValidator

extends XMLDTDValidator
java.lang.Object
   ↳ org.apache.xerces.impl.dtd.XMLDTDValidator
     ↳ org.apache.xerces.impl.dtd.XMLNSDTDValidator

Class Overview

The DTD validator. The validator implements a document filter: receiving document events from the scanner; validating the content and structure; augmenting the InfoSet, if applicable; and notifying the parser of the information resulting from the validation process.

Formerly, this component also handled DTD events and grammar construction. To facilitate the development of a meaningful DTD grammar caching/preparsing framework, this functionality has been moved into the XMLDTDLoader class. Therefore, this class no longer implements the DTDFilter or DTDContentModelFilter interfaces.

This component requires the following features and properties from the component manager that uses it:

  • http://xml.org/sax/features/namespaces
  • http://xml.org/sax/features/validation
  • http://apache.org/xml/features/validation/dynamic
  • http://apache.org/xml/properties/internal/symbol-table
  • http://apache.org/xml/properties/internal/error-reporter
  • http://apache.org/xml/properties/internal/grammar-pool
  • http://apache.org/xml/properties/internal/datatype-validator-factory
@xerces.internal

Summary

[Expand]
Inherited Constants
From class org.apache.xerces.impl.dtd.XMLDTDValidator
[Expand]
Inherited Fields
From class org.apache.xerces.impl.dtd.XMLDTDValidator
Public Constructors
XMLNSDTDValidator()
Protected Methods
void endNamespaceScope(QName element, Augmentations augs, boolean isEmpty)
Handles end element.
final void startNamespaceScope(QName element, XMLAttributes attributes, Augmentations augs)
Bind namespaces
[Expand]
Inherited Methods
From class org.apache.xerces.impl.dtd.XMLDTDValidator
From class java.lang.Object
From interface org.apache.xerces.impl.RevalidationHandler
From interface org.apache.xerces.impl.dtd.XMLDTDValidatorFilter
From interface org.apache.xerces.xni.XMLDocumentHandler
From interface org.apache.xerces.xni.parser.XMLComponent
From interface org.apache.xerces.xni.parser.XMLDocumentSource

Public Constructors

public XMLNSDTDValidator ()

Protected Methods

protected void endNamespaceScope (QName element, Augmentations augs, boolean isEmpty)

Handles end element.

Throws
XNIException

protected final void startNamespaceScope (QName element, XMLAttributes attributes, Augmentations augs)

Bind namespaces

Throws
XNIException