Creating XML Schemas: High-Level Process
There are several steps involved in creating an XML Schema (.xsd file) from scratch. First, you must examine the data needs of your organization and map out the structure of your data to determine the types, elements, and relationships you will need in the schema. After you have planned your schema out, you can quickly create it using the XML Designer. For an example of how to create a schema, see Walkthrough: Creating an XML Schema with the XML Designer.
Note In addition to creating a schema from scratch, you can infer schemas from existing XML documents (.xml files), and then edit them as needed in the XML Designer. For more information, see Creating XML Schemas from XML Files.
To create an XML Schema
- Determine the design needed for your schema.
- Add a schema to your project. For more information, see Adding New Schemas.
- Define the types that will be used in your schema. For more information, see any of the following topics:
- Add the appropriate elements to the schema, making use of the types you have defined.
Adding New Schemas | Creating Simple XML Types | Creating Complex XML Types | Creating Unnamed Simple Types | Creating Unnamed Complex Types | Creating Elements in XML Schemas | Creating Attributes in XML Schemas | Creating Element Groups in XML Schemas