How to fix “Root element is missing.” when doing a Visual Studio (VS) Build?

Make sure any XML file (or any file that would be interpreted as an XML file by visual studio) has a correct XML structure – that is, one root element (with any name, I have use rootElement in my example):

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

Leave a Comment