日期:2014-05-16 浏览次数:20467 次
string s = "<response><ret>-1</ret><val>100.00</val><msg></msg></response>";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(s);
bool r = (bool)xmlDoc.CreateNavigator().Evaluate(@"/response/ret=-1");
Response.Write(r);