111,095
社区成员




string xml = @"<?xml version='1.0' encoding='UTF-8'?>
<couponapi>
<ret>0</ret>
<msg>验证成功</msg>
<only_verify>1</only_verify>
<dealid>0</dealid>
<goods_name>您购买的书名是好好学习天天向上</goods_name>
<price>0</price>
</couponapi>
";
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.LoadXml(xml);
string ret = xmlDocument.SelectSingleNode("couponapi/ret").InnerText.Trim();
if (ret.Equals("0"))
{
string goods_name = xmlDocument.SelectSingleNode("couponapi/goods_name").InnerText.Trim();
this.textBox1.Text = goods_name;
}
else
{
this.textBox1.Text = "失败";
}