~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/addingglobalelement.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>Adding a Global element Component to an XML Schema File</title>
 
10
</head>
 
11
<body>
 
12
<h2>Adding a Global <tt>element</tt> Component to an XML Schema File</h2>
 
13
<p><small><a href="#seealso">See Also</a></small></p>
 
14
<p>You use an <tt>element</tt> to define a schema element. A global element's parent is the schema.</p>
 
15
 
 
16
<p><b>To add a global <tt>element</tt> component:</b></p>
 
17
<ol>
 
18
<li>In the IDE, open the schema file where you want to add the global <tt>element</tt> component.</li>
 
19
<li>In the Schema view, right-click the root node of the schema and choose Add&nbsp;&gt;&nbsp;Element from the pop-up menu.<br>
 
20
-or-<br>
 
21
In the Schema view, select and right-click the <tt>Elements</tt> node and choose Add&nbsp;Element from the pop-up menu.<br>
 
22
The Element dialog box opens.</li>
 
23
<li>In the Name field, type the name of the global <tt>element</tt>.</li>
 
24
<li>Use the radio buttons under Type to define the type of the global <tt>element</tt> component.</li>
 
25
<li>Click OK.<br>
 
26
The IDE adds a node for the new component. The label of the node is the name you entered in the Name field.</li>
 
27
</ol>
 
28
 
 
29
<dl>
 
30
<dt><a name="seealso">See Also</a></dt>
 
31
<dd><a href="../customizers/element.html" title="Element Dialog Box">Element Dialog Box</a></dd>
 
32
<dd><a href="addinglocalelement.html" title="Adding a Local element Component to an XML Schema File">Adding a Local <tt>element</tt> Component to an XML Schema File</a></dd>
 
33
<dd><a href="../about.html" title="About XML Schema Tools">About XML Schema Tools</a></dd>
 
34
</dl>
 
35
<hr>
 
36
<small><a href="../credits.html">Legal Notices</a></small>
 
37
<table cellpadding="150" border="0"> 
 
38
<tr><td>&nbsp;</td></tr> 
 
39
<tr><td>&nbsp;</td></tr> 
 
40
<tr><td>&nbsp;</td></tr> 
 
41
</table> 
 
42
</body>
 
43
</html>