1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
4
* Use is subject to license terms.
8
<link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
9
<title>Creating XML Schema Files</title>
12
<h2>Creating XML Schema Files</h2>
13
<p><small><a href="#seealso">See Also</a></small></p>
14
<p>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.</p>
16
<p><b>To create an XML schema file:</b></p>
18
<li>In the IDE, open the project in which you want to add the XML schema file.</li>
19
<li>In the Projects window, select the project node of your project, right-click and choose New > File/Folder.</li>
20
<li>In the New File dialog box, under Categories, select the <tt>XML</tt> node.</li>
21
<li>In the File Types list, select <tt>XML Schema</tt> and click Next.</li>
22
<li>In the Name and Location page of the wizard, in the File Name field, type a name for the file.</li>
23
<li>(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.<br>
24
By default, the new <tt>.xsd</tt> file will be created in the <tt>src</tt> folder and appear under the <tt>Source Packages</tt> node > <tt><default package></tt> node in the Projects window.</li>
25
<li>(Optional) Change the Target Namespace for the XML schema file.</li>
27
The Projects window now contains a node for the <tt>.xsd</tt> file you just created.<br>
28
The newly created subnode is selected and the Source Editor contains a tab for the new XML schema file.<br>
29
The Schema view is the active view in the Source Editor.</li>
33
<dt><a name="seealso">See Also</a></dt>
34
<dd><a href="../wiz/wiz_newxmlschema.html" title="New XML Schema Wizard: Name and Location">New XML Schema Wizard: Name and Location</a></dd>
35
<dd><a href="../schemaview/about.html" title="XML Schema Editor: About the Schema View">About the Schema View</a></dd>
36
<dd><a href="views_navigation.html" title="XML Schema Editor: Navigating Between Views">Navigating Between Views</a></dd>
37
<dd><a href="../about.html" title="About XML Schema Tools">About XML Schema Tools</a></dd>
40
<small><a href="../credits.html">Legal Notices</a></small>
41
<table cellpadding="150" border="0">
42
<tr><td> </td></tr>
43
<tr><td> </td></tr>
44
<tr><td> </td></tr>