C# 解析XML

                    string Message = mail.SendMail(0, Email, "AD:Temp-Event_US-06", xml.OuterXml);
                    XmlDocument mailXml = new XmlDocument();
                    mailXml.LoadXml(Message);
                    string mailErrCode = mailXml.DocumentElement.SelectSingleNode("err/code").InnerText;
                    string mailErrInfo = mailXml.DocumentElement.SelectSingleNode("err/info").InnerText;
                    if (mailErrCode != "0")//failure
                    {
                        string errorinfo = "AccountID:" + acctid + " EmailAdress:" + Email + " Code:" + Code;
                        Log.Error("Send mail failure.Error info:" + errorinfo);
                        return 1;
                    }


你可能感兴趣的:(xml,String,C#,email)