Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
3 of 3 deleted 119 characters in body; edited tags

Could not create an acl object: Invalid XML in file

Hello I've this custom module for Magento when loggin in to Magento Admin I am getting this error

Error Message I am getting

1 exception(s): Exception #0 (LogicException): Could not create an acl object: Invalid XML in file /home/web/public_html/app/code/Pmage/Matrixprice/etc/acl.xml: Element 'config', attribute '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation': The attribute '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation' is not allowed. Line: 2

Exception #0 (LogicException): Could not create an acl object: Invalid XML in file /home/web/public_html/app/code/Pmage/Matrixprice/etc/acl.xml: Element 'config', attribute '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation': The attribute '{http://www.w3.org/2001/XMLSchemainstance}noNamespaceSchemaLocation' is not allowed. Line: 2

The Code is as follows

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
    <acl>
        <resources>
            <resource id="Magento_Adminhtml::admin">
               <!--AddMenuAcl-->
                   <resource id="Pmage_Unit::unit"  title="Pmage">
                        <resource id="Pmage_Matrixprice::manage_matrix" title="Manage Matrix" />
                    </resource>
            </resource>
        </resources>
    </acl>
</config>