Example usage for org.apache.commons.digester3 Digester setFeature

List of usage examples for org.apache.commons.digester3 Digester setFeature

Introduction

In this page you can find the example usage for org.apache.commons.digester3 Digester setFeature.

Prototype

public void setFeature(String feature, boolean value)
        throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException 

Source Link

Document

Sets a flag indicating whether the requested feature is supported by the underlying implementation of org.xml.sax.XMLReader.

Usage

From source file:net.nicholaswilliams.java.teamcity.plugin.buildNumber.PluginConfigurationServiceDefault.java

private Digester newDigester() throws SAXException, ParserConfigurationException {
    Digester digester = this.digesterLoader.newDigester();
    digester.setFeature("http://xml.org/sax/features/validation", true);
    digester.setFeature("http://apache.org/xml/features/validation/schema", true);
    digester.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
    return digester;
}