[C#]
private void ReadSchemaFromFile(){
// Create the DataSet to read the schema into.
DataSet thisDataSet = new DataSet();
// Set the file path and name. Modify this for your purposes.
string filename="mySchema.xml";
// Invoke the ReadXmlSchema method with the file name.
thisDataSet.ReadXmlSchema(filename);
//然后写数据,通过什么方式你自己决定datagrid或者代码都可以
........................
thisDataSet.WriteXML("你要形成XML文件的名称");}
private void ReadSchemaFromFile(){
// Create the DataSet to read the schema into.
DataSet thisDataSet = new DataSet();
// Set the file path and name. Modify this for your purposes.
string filename="mySchema.xml";
// Invoke the ReadXmlSchema method with the file name.
thisDataSet.ReadXmlSchema(filename);
//然后写数据,通过什么方式你自己决定datagrid或者代码都可以
........................
thisDataSet.WriteXML("你要形成XML文件的名称");}
<?xml version="1.0" standalone="yes" ?>
<XMLSchema1 xmlns="http://tempuri.org/XMLSchema1.xsd">然后使用IDE打开即可填写数据了