TextReader txtr = new StringReader(webxml);
XDocument xdo = XDocument.Load(txtr);
var major = from query in xdo.Descendants("dict")
select new dictionary
{
ps = "音标:" + "/" + query.Element("ps").Value + "/",
pron = query.Element("pron").Value
};
mp3url = major.ToArray()[0].pron.ToString();
这段代码:mp3url = major.ToArray()[0].pron.ToString();究竟是怎样解释啊!求高手~~
|