xml-path/src/main/java/io/restassured/path/xml/config/XmlPathConfig.java
public XmlPathConfig disableLoadingOfExternalDtd() {
        Map<String, Boolean> newFeatures = new HashMap<String, Boolean>(features);
        newFeatures.put("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
        newFeatures.put("http://apache.org/xml/features/disallow-doctype-decl", false);
        return new XmlPathConfig(jaxbObjectMapperFactory, defaultParserType, defaultDeserializer, charset, newFeatures, declaredNamespaces,
                properties, validating, namespaceAware, allowDocTypeDeclaration);
    }
public XmlPathConfig disableLoadingOfExternalDtd() {
        Map<String, Boolean> newFeatures = new HashMap<String, Boolean>(features);
        newFeatures.put("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
        newFeatures.put("http://apache.org/xml/features/disallow-doctype-decl", false);
        return new XmlPathConfig(jaxbObjectMapperFactory, defaultParserType, defaultDeserializer, charset, newFeatures, declaredNamespaces,
                properties, validating, namespaceAware, allowDocTypeDeclaration);
    }
Disables external DTD loading.
<p>
This is a shortcut for doing:<br>
<pre>
setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
</pre>
</p>

@return A new XmlPathConfig instance
@see #feature(String, boolean)