このような XML を取得する linq を使用する方法を知りたいですか?
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">20</int>
linq を使用する必要がありますか? この番号を取得する方法がわかりません。
これは私が使用しようとしているコードです。選択後に立ち往生しています。誰かが私を助けることができますか?
public void wc_DownloadTopFolder(object sender, DownloadStringCompletedEventArgs e)
{
if (e.Error == null)
{
try
{
// Retrieving the Top Folders
XDocument xdoc = XDocument.Parse(e.Result, LoadOptions.None);
int i = from query in xdoc.Descendants("int")
select new int
{
};
}