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>Adding a Global element Component to an XML Schema File</title>
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>
16
<p><b>To add a global <tt>element</tt> component:</b></p>
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 > Element from the pop-up menu.<br>
21
In the Schema view, select and right-click the <tt>Elements</tt> node and choose Add 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>
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>
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>
36
<small><a href="../credits.html">Legal Notices</a></small>
37
<table cellpadding="150" border="0">
38
<tr><td> </td></tr>
39
<tr><td> </td></tr>
40
<tr><td> </td></tr>