title: Add custom field in system Configuration in magento 2
body: <p>I have tried to add new field in System configuration in magento 2. I have used the below code, but I am getting this error:</p>
  
  <blockquote>
    <p>Could not create an acl object: Invalid XML in file path/to/file</p>
  </blockquote>
  
  <p>Suggest me the correct way to do this. Thanks in advance!!</p>
  
  <p>acl.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;!--
  /**
   * Location: magento2_root/app/code/Namespace/Module/etc/acl.xml
   */
  --&gt;
  &lt;config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"&gt;
      &lt;acl&gt;
          &lt;resources&gt;
              &lt;resource id="Magento_Backend::admin"&gt;
                  &lt;resource id="Magento_Backend::stores"&gt;
                      &lt;resource id="Magento_Backend::stores_settings"&gt;
                          &lt;resource id="Magento_Config::config"&gt;
                              &lt;resource id="NAmespace_Module::config" title="Custom Settings" sortOrder="50" /&gt;
                          &lt;/resource&gt;
                      &lt;/resource&gt;
                  &lt;/resource&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
      &lt;/acl&gt;
  </code></pre>
  
  <p>system.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;!--
  /**
   * Location: magento2_root/app/code/Namespace/Module/etc/adminhtml/system.xml
   */
  --&gt;
  &lt;config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"&gt;
      &lt;system&gt;
          &lt;tab id="settings" translate="label" sortOrder="1000"&gt;
              &lt;label&gt;Settings&lt;/label&gt;
          &lt;/tab&gt;
          &lt;section id="example_section" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1"&gt;
              &lt;label&gt;Example config section&lt;/label&gt;
              &lt;tab&gt;settings&lt;/tab&gt;
              &lt;resource&gt;Namespace_Module::config&lt;/resource&gt;
              &lt;group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1"&gt;
  
                  &lt;field id="facebook" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1"&gt;
                      &lt;label&gt;Facebook&lt;/label&gt;
                  &lt;/field&gt;
  
                  &lt;field id="textarea_example" translate="label" type="textarea" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1"&gt;
                      &lt;label&gt;Textarea example&lt;/label&gt;
                  &lt;/field&gt;
              &lt;/group&gt;
          &lt;/section&gt;
      &lt;/system&gt;
  &lt;/config&gt;
  </code></pre>