Save This Page
Home » dom4j-1.6.1 » org.dom4j.io » [javadoc | source]
org.dom4j.io
public class: SAXValidator [javadoc | source]
java.lang.Object
   org.dom4j.io.SAXValidator

SAXValidator validates an XML document by writing the document to a text buffer and parsing it with a validating SAX parser. This could be implemented much more efficiently by validating against the dom4j object model directly but at least allows the reuse of existing SAX based validating parsers.

Constructor:
 public SAXValidator() 
 public SAXValidator(XMLReader xmlReader) 
Method from org.dom4j.io.SAXValidator Summary:
configureReader,   createXMLReader,   getErrorHandler,   getXMLReader,   setErrorHandler,   setXMLReader,   validate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.io.SAXValidator Detail:
 protected  void configureReader() throws SAXException 
    Configures the XMLReader before use
 protected XMLReader createXMLReader() throws SAXException 
    Factory Method to allow alternate methods of creating and configuring XMLReader objects
 public ErrorHandler getErrorHandler() 
    DOCUMENT ME!
 public XMLReader getXMLReader() throws SAXException 
    DOCUMENT ME!
 public  void setErrorHandler(ErrorHandler errorHandler) 
    Sets the ErrorHandler used by the SAX XMLReader.
 public  void setXMLReader(XMLReader reader) throws SAXException 
    Sets the XMLReader used to parse SAX events
 public  void validate(Document document) throws SAXException 
    Validates the given Document by writing it to a validating SAX Parser.