rest-assured/src/main/java/io/restassured/config/XmlConfig.java
public XmlConfig validating(boolean isValidating) {
        return new XmlConfig(features, declaredNamespaces, properties, isValidating, namespaceAware, allowDocTypeDeclaration, true);
    }
public XmlConfig validating(boolean isValidating) {
        return new XmlConfig(features, declaredNamespaces, properties, isValidating, namespaceAware, allowDocTypeDeclaration, true);
    }
Configure if XmlPath should validate documents as they are parsed (default is {@value #DEFAULT_VALIDATING}).
Note that this is only applicable when {@link XmlPath.CompatibilityMode} is equal to
{@link XmlPath.CompatibilityMode#XML}.

@param isValidating <code>true</code> if the parser should validate documents as they are parsed; <code>false</code> otherwise.
@return A new XmlPathConfig instance