Use this step-by-step guide to write an XSD schema from a database. This article focuses on the following two scenarios: How to write an XSD schema from a DataSet object with one table where all columns are not required in the resulting XSD schema. How to write an XSD schema from a DataSet object with multiple datatables where all tables are not required in the resulting XSD schema.