Magento 2 – Fix ‘DOMDocument::loadXML(): Empty String Supplied as Input’ Warning

errormagento2

Warning: DOMDocument::loadXML(): Empty string supplied as input in C:\xampp\htdocs\Magento2\vendor\magento\module-config\Model\Config\Structure\Reader.php on line 132

Best Answer

I experienced the same kind of issues. I fixed that issue by remove spacing at start of the xml file.

don't give any space at start of the xml file

<?xml version="1.0"?>
...................
..............

it should be

<?xml version="1.0"?>
...................
..............

if it is not solve your problem, show your module.xml

Related Topic