如何解决产生的异常?
public static string[] getKeywords(string filename)
{
var xmlFile = new XElement(filename);
string[] keywords = xmlFile.Elements("Keyword")
.Attributes("name")
.Select(n => n.Value).ToArray();
return keywords;
}
这会生成此异常:
System.Xml.XmlException 未处理 消息=“/”字符,十六进制值 0x2F,不能包含在名称中。源=System.Xml