XML to Schema Wizard
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.
XML schemas are used to provide IntelliSense for XML properties in Visual Basic. For more information, see XML in Visual Basic and XML IntelliSense in Visual Basic.
Note
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.
Source Type
This column displays the type of the XML document source: File, URL, or XML.XML Document Location
This column displays the path of the XML document. For typed or pasted XML documents, displays the contents of the XML document.Add from File
Click this button to add XML document files by using Windows Explorer.Add from Web
Click this button to supply the HTTP address of an XML document.Type or paste XML
Click this button to type or paste an XML document into the dialog box.
See Also
Tasks
How to: Create an XML Schema Set by Using the XML to Schema Wizard
Concepts
XML IntelliSense in Visual Basic
Reference
Change History
Date |
History |
Reason |
---|---|---|
July 2008 |
Added topic. |
SP1 feature change. |