<customerid>arout</customerid>
<companyname>around the horn</companyname>
</customers>
</customerdataset>
<diffgr:before>
<customers diffgr:id="customers1" msdata:roworder="0">
<customerid>alfki</customerid>
<companyname>alfreds futterkiste</companyname>
</customers>
</diffgr:before>
<diffgr:errors>
<customers diffgr:id="customers2" diffgr:error="an optimistic concurrency violation has occurred for this row."/>
</diffgr:errors>
</diffgr:diffgram>
注意:你可以在你的dataset中使用xpath查询和xslt转换来同步运用xml的功能性,或者提供一个相关的视图,或者创建一个xml文档数据的一个副本。
ii.计划接口
当你从一个xml文件载入一个dataset时,你可以从xsd计划载入dataset的计划,或者你可以在载入数据之前预先确定表和列。如果这里没有xsd计划或者你又不知道那个表和列是xml文件内容确定的,那么你可以使用基于xml文档结构推断计划。
计划接口是一个很有用的移植工具,但是它应该限制在设计阶段的应用程序中,仅仅因为以下几点: