Esempio n. 1
0
 /// <summary>
 /// 解析字符串
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public bool ParseStr(string data, string id, out PostType type)
 {
     type = PostType.Null;
     try
     {
         XmlDocument xmlDoc = XMLHelpler.StringToXML(data);
         bool        result = ParseXml(xmlDoc, out type);
         SaveXml(xmlDoc, "Recv-" + id, type);
         return(result);
     }
     catch (Exception ex)
     {
         Log.L_I.WriteError(ClassName, ex);
         return(false);
     }
 }