title: OpenNLP: documentBuilderFactory.setFeature("http://javax.xml.XMLConstants/feature/secure-processing", true) ParserConfigurationException
body: <p>So i'm trying to use OpenNLP within Android Studio, but my application always throws a <code>ParserConfigurationException</code> within this body of code that is used by OpenNLP in their XmlUtil class, which that I am unable to modify:</p>
  
  <pre><code>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);
      }
  }
  </code></pre>
  
  <p><code>documentBuilderFactory.setFeature("http://javax.xml.XMLConstants/feature/secure-processing", true);</code> causes the application to throw a <code>ParserConfigurationException</code>.</p>
  
  <p>Been stuck on this for about a week now and no luck, any tips for how I can get around this error?</p>