~ubuntu-branches/ubuntu/quantal/netbeans/quantal

« back to all changes in this revision

Viewing changes to xml/schema/javahelp/org/netbeans/modules/xml/schema/tasks/creatingxmlschema.html

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
ImportĀ upstreamĀ versionĀ 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<!--
 
3
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
 
4
* Use is subject to license terms.
 
5
-->
 
6
<html>
 
7
<head>
 
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>
 
10
</head>
 
11
<body>
 
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>
 
15
 
 
16
<p><b>To create an XML schema file:</b></p>
 
17
<ol>
 
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&nbsp;&gt;&nbsp;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&nbsp;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&nbsp;Packages</tt> node&nbsp;&gt;&nbsp;<tt>&lt;default&nbsp;package&gt;</tt> node in the Projects window.</li>
 
25
<li>(Optional) Change the Target Namespace for the XML schema file.</li>
 
26
<li>Click Finish.<br>
 
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>
 
30
</ol>
 
31
 
 
32
<dl>
 
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>
 
38
</dl>
 
39
<hr>
 
40
<small><a href="../credits.html">Legal Notices</a></small>
 
41
<table cellpadding="150" border="0"> 
 
42
<tr><td>&nbsp;</td></tr> 
 
43
<tr><td>&nbsp;</td></tr> 
 
44
<tr><td>&nbsp;</td></tr> 
 
45
</table> 
 
46
</body>
 
47
</html>