C# LoadXml System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
去掉BOM头 writer = new XmlTextWriter(stream, new UnicodeEncoding(false,false)); 如果是UTF8 writer = new XmlTextWriter(stream, new UTF8Encoding(false));
当你的才华不能撑起你的野心时,就是你该选择学习的时候了!
去掉BOM头 writer = new XmlTextWriter(stream, new UnicodeEncoding(false,false)); 如果是UTF8 writer = new XmlTextWriter(stream, new UTF8Encoding(false));