Creating XML Schema Files

See Also

After you create an XML schema file, you use the Schema view and the Design view of the XML schema editor to add schema components to the file.

To create an XML schema file:

  1. In the IDE, open the project in which you want to add the XML schema file.
  2. In the Projects window, select the project node of your project, right-click and choose New > File/Folder.
  3. In the New File dialog box, under Categories, select the XML node.
  4. In the File Types list, select XML Schema and click Next.
  5. In the Name and Location page of the wizard, in the File Name field, type a name for the file.
  6. (Optional) To change the default folder for the file, use the Browse button next to the Folder field to navigate to and select another folder for the file.
    By default, the new .xsd file will be created in the src folder and appear under the Source Packages node > <default package> node in the Projects window.
  7. (Optional) Change the Target Namespace for the XML schema file.
  8. Click Finish.
    The Projects window now contains a node for the .xsd file you just created.
    The newly created subnode is selected and the Source Editor contains a tab for the new XML schema file.
    The Schema view is the active view in the Source Editor.
See Also
New XML Schema Wizard: Name and Location
About the Schema View
Navigating Between Views
About XML Schema Tools

Legal Notices