<!--数据文档-->
<root>
 <sent>
  <m> 
   <id>1</id> 
   <jid>1</jid>
   <oth>[email protected]</oth> 
   <time>2008-3-10 10:18:00</time> 
   <status>0</status>
   <cnt>message01</cnt>
  </m>
  <m> 
   <id>2</id> 
   <jid>2</jid>
   <oth>[email protected]</oth> 
   <time>2008-3-10 10:18:00</time> 
   <status>0</status>
   <cnt>message02</cnt>
  </m>
  <m> 
   <id>3</id> 
   <jid>3</jid>
   <oth>[email protected]</oth> 
   <time>2008-3-10 10:18:00</time> 
   <status>0</status>
   <cnt>message03</cnt>
  </m>
 </sent>
</root><!--相应的数据架构文档-->
<?xml version="1.0" standalone="yes"?>
<xs:schema id="root" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="root" msdata:IsDataSet="true" msdata:Locale="en-US">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="sent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="m" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="id" type="xs:string" minOccurs="0" />
                    <xs:element name="jid" type="xs:string" minOccurs="0" />
                    <xs:element name="oth" type="xs:string" minOccurs="0" />
                    <xs:element name="time" type="xs:string" minOccurs="0" />
                    <xs:element name="status" type="xs:string" minOccurs="0" />
                    <xs:element name="cnt" type="xs:string" minOccurs="0" />
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>
问题:想从以上数据文档中读取数据,加载到内存表中,但却只能加载一条记录?
自己的对策:打断点单步调试,监视DataSet对象的GetXml()方法的返回值为XML数据文档的第一个<m>...</m>节点,也就造成内容表中只有一条记录。我个人怀疑问题还是出在xsd上了,不知大家的意见是怎么样的?在下洗耳恭听。