cancel
Showing results for 
Search instead for 
Did you mean: 

How can i resolve Empty string supplied as input in DOMDocument::loadXML() in magento 2?

How can i resolve Empty string supplied as input in DOMDocument::loadXML() in magento 2?

when I compile my code I have this kind of error accurse

Warning: DOMDocument::loadXML(): Empty string supplied as input in /mnt/data/home/cloudwaysapps.com/ssucdkafzj/public_html/setup/src/Magento/Setup/Module/Di
  /Code/Scanner/ServiceDataAttributesScanner.php on line 24WVWfZ.png 
1 REPLY 1

Re: How can i resolve Empty string supplied as input in DOMDocument::loadXML() in magento 2?

I experienced the same kind of issues. I fixed that issue by removing spacing at the start of the XML file.
don't give any space at the start of the XML file

<?xml version="1.0"?>

...................
it should be

<?xml version="1.0"?>

...................

If issue solved, Click Kudos & Accept as Solution.
LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool