1,用XMLSPY2010打开你的XML文件 2,在DTD/Schema中选Generate DTD/Schema 3,在DTD/Schema file format中选W3C Schema 4,输入schema名字