I have a code snippet :
XmlDocument doc = new XmlDocument();
try
{
doc.LoadXml(xmlPath);
}
catch (Exception ex)
{
string exMessage = ex.Message;
}
The XML looks like this
<?xml version="1.0" encoding="UTF-8"?>
<MimeTypes>
<MimeType>
<Extension>.3dm</Extension>
<Value>x-world/x-3dmf</Value>
</MimeType>
</MimeTypes>
Its producing this error:
Data at the root level is invalid. Line 1, position 1.
Any idea what's wrong?