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) {
|
||||
try {
|
||||
saxBuilder.setFeature(feature, true);
|
||||
parser.setFeature(feature, true);
|
||||
saxBuilder.setFeature(feature, value);
|
||||
parser.setFeature(feature, value);
|
||||
} catch (final SAXNotRecognizedException e) {
|
||||
// ignore
|
||||
} catch (final SAXNotSupportedException e) {
|
||||
|
|
Loading…
Reference in a new issue