Skip to content

Instantly share code, notes, and snippets.

@HashRaygoza
Created October 25, 2020 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HashRaygoza/9d14663c28d6d05a7727a77645c30a9f to your computer and use it in GitHub Desktop.
Save HashRaygoza/9d14663c28d6d05a7727a77645c30a9f to your computer and use it in GitHub Desktop.
documentBuilderFactory.setNamespaceAware(false);
documentBuilderFactory.setValidating(false);
documentBuilderFactory.setFeature("http://xml.org/sax/features/namespaces", false);
documentBuilderFactory.setFeature("http://xml.org/sax/features/validation", false);
documentBuilderFactory.setFeature("http://apache.org/xml/features/nonvalidating/load-dtd-grammar", false);
documentBuilderFactory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment