Merge pull request #218 from mishako/xml-features-fix
Fix setting xml features
This commit is contained in:
commit
5a46ee161d
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue