Carson Reinke's Headshot

Carson Reinke's (πŸš—β˜€β˜”πŸ”‘) Blog

Digester / UnsupportedOperationException / setXIncludeAware

http://apache-commons.680414.n4.nabble.com/digester-Xinclude-aware-parsing-td741068.html

setXIncludeAware can throwΒ UnsupportedOperationException, which is being used by Digester. Β Easy work around is to just provide a SAXParser with the constructor

SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setValidating(false);
Digester digester = new Digester(factory.newSAXParser());