XSD是用来定义XML的,也可以用来生成XML。 在VS2010里创建xml的时候,如果想让这个xml应用某一个schema,点菜单栏里的XML里的架构,选中你想应用的XSD文件即可。 点击打开链接http://www.thebestcsharpprogrammerintheworld.com/blogs/add-an-xml-schema-file-to-visual-studio-2010.aspx