我該如何反序列化這個使用Linq的XML? 我想創建List<Step>
如何使用Linq反序列化xml?
<MySteps>
<Step>
<ID>1</ID>
<Name>Step 1</Name>
<Description>Step 1 Description</Description>
</Step>
<Step>
<ID>2</ID>
<Name>Step 2</Name>
<Description>Step 2 Description</Description>
</Step>
<Step>
<ID>3</ID>
<Name>Step 3</Name>
<Description>Step 3 Description</Description>
</Step>
<Step>
<ID>4</ID>
<Name>Step 4</Name>
<Description>Step 4 Description</Description>
</Step>
</MySteps>
什麼是什麼?你有沒有定義自己的List類?你試過什麼了? – 2012-02-28 15:50:55
不只是使用'System.Xml.Serialization.XmlSerializer'的任何理由? – 2012-02-28 15:56:16
我正在嘗試使用Linq到xml沒有成功 – user829174 2012-02-28 15:57:52