private static int GetAllDeviceNum(string strBody) { string str = XmlUtil.GetNodeValue(strBody, "SumNum"); if (str != string.Empty) { return Convert.ToInt32(str); } else { return 0; } }