<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xsd:schema id="DataSet" targetNamespace="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="DataSet" msdata:IsDataSet="true" msdata:Locale="zh-CN">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="BGRJ">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="GUID" type="xsd:string" size="64" caption="GUID"  allowNull="false" iskey="true" minOccurs="0" />
<xsd:element name="SBMC" type="xsd:string" size="64" caption="购入数量1" allowNull="true" minOccurs="0" />
<xsd:element name="SBJBXX" type="xsd:string" size="64" caption="购入数量2" allowNull="true" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>如何将上述文件把XSD的<xsd:sequence>子节点 的属性内容绑定到Datagrid ? 用DataSet.LoadXml不行,我试过了。 有个笨办法是用XMLDOM 逐个读出节点属性然后再添加到DataGrid中。大家有没有好的方法。麻烦给出源代码,谢谢。