XML - Data At Root Level is Invalid
问题 I have an XSD file that is encoded in UTF-8, and any text editor I run it through doesn\'t show any character at the beginning of the file, but when I pull it up in Visual Studio\'s debugger, I clearly see an empty box in front of the file. I also get the error: Data at the root level is invalid. Line 1, position 1. Anyone know what this is? Update: Edited post to qualify type of file. It\'s an XSD file created by Microsoft\'s XSD creator. 回答1: It turns out, the answer is that what I'm seeing