我在通过以下方式加载 XML 文件时遇到问题:
XDocument.Load("file.xml");
以下是一些错误:
error CS1056: Unexpected character '®'
error CS1056: Unexpected character '™'
error CS1056: Unexpected character '、'
error CS0116: A namespace cannot directly contain members such as fields or methods
error CS1003: Syntax error, ']' expected
error CS1518: Expected class, delegate, enum, interface, or struct
所以我想问是否有任何方法可以轻松解决这个问题?