Merge pull request #218 from mishako/xml-features-fix

Fix setting xml features
This commit is contained in:
Patrick Gotthard 2016-01-10 18:00:34 +01:00
commit 5a46ee161d

View file

@ -370,8 +370,8 @@ public class WireFeedInput {
private void setFeature(SAXBuilder saxBuilder, XMLReader parser, String feature, boolean value) { private void setFeature(SAXBuilder saxBuilder, XMLReader parser, String feature, boolean value) {
try { try {
saxBuilder.setFeature(feature, true); saxBuilder.setFeature(feature, value);
parser.setFeature(feature, true); parser.setFeature(feature, value);
} catch (final SAXNotRecognizedException e) { } catch (final SAXNotRecognizedException e) {
// ignore // ignore
} catch (final SAXNotSupportedException e) { } catch (final SAXNotSupportedException e) {