title: ParserConfigurationException with javax.xml.parsers on Android
body: <p>I'm trying to use javax.xml.parsers on Android but I always get a ParserConfigurationException when trying to set these two features :</p>
  
  <pre><code>factory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
  factory.setFeature("http://apache.org/xml/features/nonvalidating/load-dtd-grammar", false);
  </code></pre>
  
  <p>Here is my code</p>
  
  <pre><code>    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
      factory.setNamespaceAware(false);
      factory.setValidating(false);
      try {
              factory.setFeature("http://xml.org/sax/features/namespaces", false);
              factory.setFeature("http://xml.org/sax/features/validation", false);
              factory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
              factory.setFeature("http://apache.org/xml/features/nonvalidating/load-dtd-grammar", false);
  
      } catch (ParserConfigurationException e) {
              e.printStackTrace();
      }
  </code></pre>