use of org.apache.xerces.parsers.AbstractSAXParser in project gocd by gocd.
the class HtmlSaxParserContext method createParser.
@Override
protected AbstractSAXParser createParser() throws SAXException {
SAXParser parser = new SAXParser();
try {
parser.setProperty("http://cyberneko.org/html/properties/names/elems", "lower");
parser.setProperty("http://cyberneko.org/html/properties/names/attrs", "lower");
return parser;
} catch (SAXException ex) {
throw new SAXException("Problem while creating HTML SAX Parser: " + ex.toString());
}
}
use of org.apache.xerces.parsers.AbstractSAXParser in project nokogiri by sparklemotion.
the class HtmlSaxParserContext method createParser.
@Override
protected AbstractSAXParser createParser() throws SAXException {
SAXParser parser = new SAXParser();
try {
parser.setProperty("http://cyberneko.org/html/properties/names/elems", "lower");
parser.setProperty("http://cyberneko.org/html/properties/names/attrs", "lower");
return parser;
} catch (SAXException ex) {
throw new SAXException("Problem while creating HTML SAX Parser: " + ex.toString());
}
}
Aggregations