rest-assured/src/main/java/io/restassured/config/XmlConfig.java
public XmlConfig declareNamespaces(Map<String, String> namespacesToDeclare) {
        final boolean shouldBeNamespaceAware = namespacesToDeclare == null ? namespaceAware : !namespacesToDeclare.isEmpty();
        return new XmlConfig(features, namespacesToDeclare, properties, validating, shouldBeNamespaceAware, allowDocTypeDeclaration, true);
    }
public XmlConfig declareNamespaces(Map<String, String> namespacesToDeclare) {
        final boolean shouldBeNamespaceAware = namespacesToDeclare == null ? namespaceAware : !namespacesToDeclare.isEmpty();
        return new XmlConfig(features, namespacesToDeclare, properties, validating, shouldBeNamespaceAware, allowDocTypeDeclaration, true);
    }
public XmlConfig declareNamespaces ( Map < String , String > namespacesToDeclare ) { final boolean shouldBeNamespaceAware = namespacesToDeclare == null ? namespaceAware : ! namespacesToDeclare . isEmpty ( ) ; return new XmlConfig ( features , namespacesToDeclare , properties , validating , shouldBeNamespaceAware , allowDocTypeDeclaration , true ) ; }
Specify declared namespaces that will be used when parsing XML. Will also set {@link #namespaceAware(boolean)} to <code>true</code> of namespaces are not empty.
<p>Note that you cannot use this to add namespaces for the {@link org.hamcrest.xml.HasXPath} matcher.
This has to be done by providing a {@link javax.xml.namespace.NamespaceContext} to the matcher instance.</p>

@param namespacesToDeclare A map containing features that will be used by the underlying {@link groovy.util.XmlSlurper}.
@return A new instance of XmlConfig
@see org.xml.sax.XMLReader#setFeature(java.lang.String, boolean)
Specify declared namespaces that will be used when parsing XML . Will also set { @link #namespaceAware ( boolean ) } to <code > true< / code > of namespaces are not empty . <p > Note that you cannot use this to add namespaces for the { @link org . hamcrest . xml . HasXPath } matcher . This has to be done by providing a { @link javax . xml . namespace . NamespaceContext } to the matcher instance . < / p >