1,用XMLSPY2010打開你的XML檔案 2,在DTD/Schema中選Generate DTD/Schema 3,在DTD/Schema file format中選W3C Schema 4,輸入schema名字