Search in sources :

Example 1 with DTDConfiguration

use of org.cyberneko.dtd.DTDConfiguration in project nokogiri by sparklemotion.

the class NokogiriDomParser method initialize.

protected void initialize() {
    if (config == null) {
        if (xInclude) {
            config = new XIncludeParserConfiguration();
        } else {
            config = getXMLParserConfiguration();
        }
    }
    DTDConfiguration dtdConfig = new DTDConfiguration();
    dtd = new DOMParser(dtdConfig);
    config.setDTDHandler(dtdConfig);
    config.setDTDContentModelHandler(dtdConfig);
}
Also used : XIncludeParserConfiguration(org.apache.xerces.parsers.XIncludeParserConfiguration) DTDConfiguration(org.cyberneko.dtd.DTDConfiguration) DOMParser(org.apache.xerces.parsers.DOMParser)

Example 2 with DTDConfiguration

use of org.cyberneko.dtd.DTDConfiguration in project gocd by gocd.

the class NokogiriDomParser method initialize.

protected void initialize() {
    if (config == null) {
        if (xInclude) {
            config = new XIncludeParserConfiguration();
        } else {
            config = getXMLParserConfiguration();
        }
    }
    DTDConfiguration dtdConfig = new DTDConfiguration();
    dtd = new DOMParser(dtdConfig);
    config.setDTDHandler(dtdConfig);
    config.setDTDContentModelHandler(dtdConfig);
}
Also used : XIncludeParserConfiguration(org.apache.xerces.parsers.XIncludeParserConfiguration) DTDConfiguration(org.cyberneko.dtd.DTDConfiguration) DOMParser(org.apache.xerces.parsers.DOMParser)

Aggregations

DOMParser (org.apache.xerces.parsers.DOMParser)2 XIncludeParserConfiguration (org.apache.xerces.parsers.XIncludeParserConfiguration)2 DTDConfiguration (org.cyberneko.dtd.DTDConfiguration)2