0
我知道这个问题已被多次询问,但我还没有设法解决我的问题,尽管尝试了几个其他类似问题的建议。阅读XML到字典
现在我请求,希望能得到答案。
我有这个XML文件:
<?xml version="1.0" encoding="utf-8"?>
<WebCommands>
<WebCommand>
<FullCommand>@ 05c9fe42-8d89-401d-a9a5-2d82af58e16f This is a test from WebCommands!</FullCommand>
<TimeStamp>18.06.2015 02:56:22</TimeStamp>
</WebCommand>
</WebCommands>
我需要FullCommand和时间戳被添加到我的字典
Dictionary<DateTime, string> commands = new Dictionary<DateTime, string>();
如何:
1.添加FullCommand和时间戳到字典?
2.将TimeStamp字符串转换为适当的DateTime?
[如何将XML转换为字典](http://stackoverflow.com/questions/13952425/how-to-convert-xml-to-dictionary) – Tim