我想解析这个 XML 并获取手机号码
<Result>
<text_message>
<id>4394</id>
<message>2</message>
<time>1373998420</time>
<message_phone>
<cellphone>09102805755</cellphone>
</message_phone>
</text_message>
</Result>
我的代码是:
int Num;
XDocument doc = XDocument.Parse(sms.InboxCheck(authsms, "1", "1", "0"));
doc.Save(Server.MapPath(".") + "\\xmlfolder\\xmlfile2.xml");
ds.ReadXml(Server.MapPath(".") + "\\xmlfolder\\xmlfile2.xml");
Num = Convert.ToInt32(ds.Tables["text_message"].Rows[0][3].ToString());
Label1.Text= Num.ToString();
这个值Rows[0][3]
是0
如何获取手机号码?