Example usage for org.jdom2.input.sax XMLReaderJDOMFactory isValidating

List of usage examples for org.jdom2.input.sax XMLReaderJDOMFactory isValidating

Introduction

In this page you can find the example usage for org.jdom2.input.sax XMLReaderJDOMFactory isValidating.

Prototype

public boolean isValidating();

Source Link

Document

Does an XMLReader from this factory do more than just well-formed checks.

Usage

From source file:org.mycore.common.xml.MCRXMLParserImpl.java

License:Open Source License

public MCRXMLParserImpl(XMLReaderJDOMFactory factory, boolean silent) {
    this.validate = factory.isValidating();
    builder = new SAXBuilder(factory);
    builder.setFeature(FEATURE_NAMESPACES, true);
    builder.setFeature(FEATURE_SCHEMA_SUPPORT, validate);
    builder.setFeature(FEATURE_FULL_SCHEMA_SUPPORT, false);
    builder.setErrorHandler(new MCRXMLParserErrorHandler(silent));
    builder.setEntityResolver(new XercesBugFixResolver(MCREntityResolver.instance()));
}