有个xml文件,是由WebService返回的,用LinQ始终无法正确解析,还请各位大神们帮帮忙。
<?xml version="1.0" encoding="utf-8" ?>
<DataTable>
<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:MainDataTable="StudentInfo" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="StudentInfo">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string" minOccurs="0" />
<xs:element name="age" 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">
<DocumentElement>
<StudentInfo diffgr:id="StudentInfo1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
<listtype>小王</listtype>
<age>17</age>
</StudentInfo>
<StudentInfo diffgr:id="StudentInfo2" msdata:rowOrder="1" diffgr:hasChanges="inserted">
<listtype>小李</listtype>
<age>18</age>
</StudentInfo>
</DocumentElement>
</diffgr:diffgram>
</DataTable>
要求读取出StudentInfo中的Name和Age属性,请各路高手帮忙~