|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
XML to Schema Wizard
Updated: July 2008
Use the XML to Schema Wizard to create an XML schema set that is inferred from one or more XML documents and include it your project. You can use any combination of XML documents in the form of text files, XML from HTTP Internet addresses, or XML that is typed or pasted into the XML to Schema Wizard.
Before you run the XML to Schema Wizard, it is recommended that you remove any existing XSD files from the project that were previously generated by the wizard. If you infer an XML schema set that matches an existing schema set, a conflict can occur and Visual Basic will not be able to provide IntelliSense for XML properties.
The XML to Schema Wizard uses the XmlSchemaInference class to create the schema for the supplied XML. As a result, multiple schema files may be created for the schema set. For each XML namespace in the supplied XML, an Extensible Schema Definition (XSD) file is created. For more information, see the InferSchema method.
To access the XML to Schema Wizard, click Add New Item on the Project menu and add an XML to Schema template from either the Data or Common Items template group. After you have included all the XML document sources to infer the XML schema set from, click OK to create the inferred schema set.