xml字符串加载时,怎么处理节点属性上的特殊字符?
<d>
<a>
<b>v2= ddd</b>
<b>v1 = 10000</b>
</a>
<c Condition="v1 <= 100">
</c>
<c Condition="v1 = 100" >
</c>
</d>
[解决办法]
http://blog.csdn.net/ldl22847/article/details/7029314
[解决办法]
先替换再解析:
string s = File.ReadAllText(Server.MapPath("~/test.xml")); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(s.Replace("<=","<="));