I added one custom
HelloWorld module in a fresh
Magento 2 installation and I got the following error:
Warning: DOMDocument::loadXML(): Extra content at the end of the document in Entity, line: 8 in /var/www/magento2/vendor/magento/framework/Config/Dom.php on line 365
What can be the exact cause for this issue?
I get this error even when I install the sample module from Magento repo. I have not done any edits to the sample module.
It was my custom module causing the problem. Sample module from magento github works fine.