Silverlight中怎样读取XML,并转换为LIST集合?
<?xml version="1.0" encoding="utf-8"?><DataSet xmlns="http://tempuri.org/"> <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="Table"> <xs:complexType> <xs:sequence> <xs:element name="STCD" type="xs:string" minOccurs="0" /> <xs:element name="STNM" type="xs:string" minOccurs="0" /> <xs:element name="RVNM" type="xs:string" minOccurs="0" /> <xs:element name="HNNM" type="xs:string" minOccurs="0" /> <xs:element name="BSNM" type="xs:string" minOccurs="0" /> <xs:element name="LGTD" type="xs:string" minOccurs="0" /> <xs:element name="LTTD" type="xs:string" minOccurs="0" /> <xs:element name="STLC" type="xs:string" minOccurs="0" /> <xs:element name="MDBZ" type="xs:decimal" minOccurs="0" /> <xs:element name="DTMNM" type="xs:string" minOccurs="0" /> <xs:element name="STTP" type="xs:string" minOccurs="0" /> <xs:element name="FRITM" type="xs:string" minOccurs="0" /> <xs:element name="ADMAUTH" type="xs:string" minOccurs="0" /> <xs:element name="MODITIME" type="xs:dateTime" minOccurs="0" /> <xs:element name="ENTPOINT" type="xs:string" minOccurs="0" /> <xs:element name="STPERSON" type="xs:string" minOccurs="0" /> <xs:element name="MOBPHONE" type="xs:string" minOccurs="0" /> <xs:element name="LOCALITY" type="xs:string" minOccurs="0" /> <xs:element name="AFLAG" type="xs:string" minOccurs="0" /> <xs:element name="ST_RIVER" type="xs:string" minOccurs="0" /> <xs:element name="ST_RSVR" type="xs:string" minOccurs="0" /> <xs:element name="ST_WAS" type="xs:string" minOccurs="0" /> <xs:element name="ST_TIDE" type="xs:string" minOccurs="0" /> <xs:element name="ST_PPTN" type="xs:string" minOccurs="0" /> <xs:element name="ST_Q" type="xs:string" minOccurs="0" /> <xs:element name="TM" type="xs:string" minOccurs="0" /> <xs:element name="R_Q" type="xs:string" minOccurs="0" /> <xs:element name="R_TYPE" type="xs:string" minOccurs="0" /> <xs:element name="AV_Q" type="xs:string" minOccurs="0" /> <xs:element name="AV_TYPE" type="xs:string" minOccurs="0" /> <xs:element name="Q" type="xs:string" minOccurs="0" /> <xs:element name="FLWCHRCD" type="xs:string" minOccurs="0" /> <xs:element name="OTQ" type="xs:string" minOccurs="0" /> <xs:element name="RWCHRCD" type="xs:string" minOccurs="0" /> <xs:element name="TGTQ" type="xs:string" minOccurs="0" /> <xs:element name="SWCHRCD" type="xs:string" minOccurs="0" /> <xs:element name="GTQ" type="xs:string" minOccurs="0" /> <xs:element name="PMPQ" type="xs:string" minOccurs="0" /> <xs:element name="AVQ" type="xs:string" minOccurs="0" /> <xs:element name="AVOTQ" type="xs:string" minOccurs="0" /> <xs:element name="AVGTQ" type="xs:string" minOccurs="0" /> <xs:element name="ACC" type="xs:string" minOccurs="0" /> <xs:element name="R_Q_MAX" type="xs:string" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema> <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"> <NewDataSet xmlns=""> <Table diffgr:id="Table1" msdata:rowOrder="0"> <STCD>60115000</STCD> <STNM>大通</STNM> <RVNM>长江</RVNM> <HNNM>长江中下游</HNNM> <BSNM>长江流域</BSNM> <DTMNM>镇江吴淞</DTMNM> <STTP>ZZ</STTP> <FRITM>00110000000000000000000000000000</FRITM> <ADMAUTH>0</ADMAUTH> <AFLAG>A0</AFLAG> <ST_RIVER>1</ST_RIVER> <ST_RSVR>0</ST_RSVR> <ST_WAS>0</ST_WAS> <ST_TIDE>0</ST_TIDE> <ST_PPTN>1</ST_PPTN> <ST_Q>1</ST_Q> <TM>2009-08-03</TM> <R_Q> 41900.00</R_Q> <R_TYPE>河道</R_TYPE> <Q> 41900.00</Q> </Table> <Table diffgr:id="Table2" msdata:rowOrder="1"> <STCD>60116600</STCD> <STNM>镇江</STNM> <RVNM>长江</RVNM> <HNNM>湖西区</HNNM> <BSNM>长江流域</BSNM> <LGTD> 119.000000</LGTD> <LTTD> 32.000000</LTTD> <DTMNM>镇江吴淞</DTMNM> <STTP>TT</STTP> <FRITM>00110000000000000000000000000000</FRITM> <AFLAG>A1</AFLAG> <ST_RIVER>0</ST_RIVER> <ST_RSVR>0</ST_RSVR> <ST_WAS>0</ST_WAS> <ST_TIDE>0</ST_TIDE> <ST_PPTN>0</ST_PPTN> <ST_Q>1</ST_Q> <TM>2009-08-03</TM> </Table> <Table diffgr:id="Table3" msdata:rowOrder="2"> <STCD>63002400</STCD> <STNM>杭长桥</STNM> <RVNM>苕溪</RVNM> <HNNM>杭嘉湖区</HNNM> <BSNM>太湖流域</BSNM> <LGTD> 120.065000</LGTD> <LTTD> 30.867778</LTTD> <STLC>浙江省湖州市西门外杭长桥</STLC> <MDBZ>1.84</MDBZ> <DTMNM>镇江吴淞</DTMNM> <STTP>ZZ</STTP> <FRITM>11110000000000000000000000000000</FRITM> <ADMAUTH>浙江水文局</ADMAUTH> <MODITIME>2008-02-25T15:05:00+08:00</MODITIME> <ENTPOINT>330500</ENTPOINT> <STPERSON>陈光</STPERSON> <MOBPHONE>13857251448</MOBPHONE> <LOCALITY>浙江水文</LOCALITY> <AFLAG>A6</AFLAG> <ST_RIVER>1</ST_RIVER> <ST_RSVR>0</ST_RSVR> <ST_WAS>0</ST_WAS> <ST_TIDE>0</ST_TIDE> <ST_PPTN>1</ST_PPTN> <ST_Q>1</ST_Q> <TM>2009-08-03</TM> <R_Q> 135.00</R_Q> <R_TYPE>河道</R_TYPE> <Q> 135.00</Q> </Table> <Table diffgr:id="Table4" msdata:rowOrder="3"> <STCD>63303600</STCD> <STNM>新市</STNM> <RVNM>洋溪港</RVNM> <HNNM>杭嘉湖区</HNNM> <BSNM>太湖流域</BSNM> <LGTD> 120.282500</LGTD> <LTTD> 30.622500</LTTD> <STLC>浙江省德清县新市镇</STLC> <MDBZ>1.84</MDBZ> <DTMNM>镇江吴淞</DTMNM> <STTP>ZZ</STTP> <FRITM>11100000000000000000000000000000</FRITM> <ADMAUTH>浙江水文局</ADMAUTH> <MODITIME>2008-02-25T15:07:00+08:00</MODITIME> <ENTPOINT>330500</ENTPOINT> <STPERSON>陈光</STPERSON> <MOBPHONE>13857251448</MOBPHONE> <LOCALITY>浙江水文</LOCALITY> <AFLAG>A6</AFLAG> <ST_RIVER>1</ST_RIVER> <ST_RSVR>0</ST_RSVR> <ST_WAS>0</ST_WAS> <ST_TIDE>0</ST_TIDE> <ST_PPTN>1</ST_PPTN> <ST_Q>1</ST_Q> <TM>2009-08-03</TM> </Table> <Table diffgr:id="Table5" msdata:rowOrder="4"> <STCD>63305800</STCD> <STNM>临平上</STNM> <RVNM>上塘河</RVNM> <HNNM>杭嘉湖区</HNNM> <BSNM>太湖流域</BSNM> <LGTD> 120.302778</LGTD> <LTTD> 30.424167</LTTD> <STLC>浙江省余杭市临平镇</STLC> <MDBZ>1.84</MDBZ> <DTMNM>镇江吴淞</DTMNM> <STTP>ZZ</STTP> <FRITM>10010000000000000000000000000000</FRITM> <ADMAUTH>浙江水文局</ADMAUTH> <MODITIME>2008-02-25T16:44:00+08:00</MODITIME> <ENTPOINT>330100</ENTPOINT> <STPERSON>孙映宏</STPERSON> <MOBPHONE>13957174055</MOBPHONE> <LOCALITY>浙江水文</LOCALITY> <AFLAG>A6</AFLAG> <ST_RIVER>1</ST_RIVER> <ST_RSVR>0</ST_RSVR> <ST_WAS>0</ST_WAS> <ST_TIDE>0</ST_TIDE> <ST_PPTN>1</ST_PPTN> <ST_Q>1</ST_Q> <TM>2009-08-03</TM> </Table> </NewDataSet> </diffgr:diffgram></DataSet>