So i'm trying to use OpenNLP within Android Studio, but my application always throws a ParserConfigurationException within this body of code that is used by OpenNLP in their XmlUtil class, which that I am unable to modify:
public static DocumentBuilder createDocumentBuilder() {
try {
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilderFactory.setFeature("http://javax.xml.XMLConstants/feature/secure-processing", true);
return documentBuilderFactory.newDocumentBuilder();
} catch (ParserConfigurationException var1) {
throw new IllegalStateException(var1);
}
}
documentBuilderFactory.setFeature("http://javax.xml.XMLConstants/feature/secure-processing", true); causes the application to throw a ParserConfigurationException.
Been stuck on this for about a week now and no luck, any tips for how I can get around this error?