【发布时间】:2011-12-13 22:33:51
【问题描述】:
这是我在文件中的 XML:
特别说明: 这是 Windows Phone 7 的问题,而不是一般的 C#
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<item>
<date>01/01</date>
<word>aberrant</word>
<def>straying from the right or normal way</def>
</item>
<item>
<date>01/02</date>
<word>Zeitgeist</word>
<def>the spirit of the time.</def>
</item>
</rss>
我需要它在 Dictionary 对象的 List(又名数组)中。每个Dictionary 代表一个<item>。像<word> 这样的每个元素都是key 类型为string 而像“Zeitgeist”这样的每个值都是value 类型为string。
有什么简单的方法可以做到这一点吗?我来自 Objective-C 和 iOS,所以这对我来说是全新的 .NET 和 C#。
【问题讨论】:
标签: c# .net xml visual-studio windows-phone-7