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 24
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"?>
...................