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());
link