xml解析标签

 1         //获取两个标签之间的值
 2         private static string GetStr(string message, string strStart, string strEnd)
 3         {
 4             int start = 0;
 5             int end = 0;
 6             start = message.IndexOf(strStart);
 7             if (start < 0) return "";
 8             end = message.Substring(start + strStart.Length).IndexOf(strEnd);
 9             if (end >= 0)
10             {
11                 return message.Substring(start + strStart.Length, end);
12             }
13             return "";
14         }
原文地址:https://www.cnblogs.com/qiu2013/p/3938838.html