blob: 27456094fc3f75dee374fbcf6a98a80b20c51534 [file] [log] [blame]
syeshinbefd53e2005-07-27 18:16:40 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html>
5<head>
6<link rel="stylesheet" type="text/css" href="../../com.ibm.help.doc/swg_info_common.css" />
7<title>Editing your namespace information</title>
8<script language="JavaScript">
9 function popup_window( url, id, width, height )
10 {
11 popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + ',left=,top=' );
12 popup.focus();
13 }
14</script><script language="JavaScript" src="help/liveHelp.js"></script></head>
15<body id="tedtsch"><a name="tedtsch"><!-- --></a>
16
17<h1 class="topictitle1">Editing your namespace information</h1>
18<div><p>Your namespace information is used to provide various information
19about the XML file, such as the XML schema it is associated with. </p><div class="skipspace"><p>The following instructions were written for the Resource perspective,
20but they will also work in many other perspectives.</p>
21<p>To edit your schema
22information, follow these steps:</p>
23</div>
24<ol><li class="skipspace"><span>In the Design view of the XML editor, right-click
25your root element and click <span class="uicontrol">Edit Namespaces</span>.</span></li>
26<li class="skipspace"><span>Your XML file may be associated with more than one namespace or
27schema.</span> Select the entry you want to edit and click <span class="uicontrol">Edit</span>.</li>
28<li class="skipspace"><span>The value in the <span class="uicontrol">Namespace Name</span> field is
29a namespace the XML file is associated with.</span> Your XML file should
30be associated with the same namespace(s) its XML schema is associated with.
31For more information about namespaces, refer to the related reference.</li>
32<li class="skipspace"><span>All qualified elements and attributes in the XML file associated
33with the namespace will be prefixed with the <span class="uicontrol">Prefix</span> value. </span></li>
34<li class="skipspace"><span>The <span class="uicontrol">Location Hint</span> field contains the location
35of the XML schema the XML file is associated with.</span> An XML Catalog
36Key or a namespace name can be specified in this field.  Click <span class="uicontrol">Browse</span> to
37view all XML schemas in the workbench and XML Catalog. </li>
38<li class="skipspace"><span>Click <span class="uicontrol">OK</span>, then click <span class="uicontrol">OK</span> again.</span></li>
39</ol>
40<div class="skipspace"><p>If you want to create a new association, click <span class="uicontrol">Add</span> instead
41of <span class="uicontrol">Edit</span>. You can then either click the <span class="uicontrol">Specify
42From Registered Namespace</span> radio button and select the namespace
43declarations you want to add or click the <span class="uicontrol">Specify New Namespace</span> radio
44button and fill in the fields as necessary. </p>
45</div>
46</div>
47
48<div>
49
50<p><b class="relconceptshd">Related concepts</b><br />
51<a href="../topics/cxmlcat.html" title="There are two different ways to associate XML files with DTDs or XML schemas.">XML file associations with DTDs and XML schemas</a><br />
52</p>
53<p><b class="reltaskshd">Related tasks</b><br />
54<a href="../topics/tedtcnst.html" title="In the Design view, when you edit an XML file that has a set of constraints (that is, a set of rules) defined by a DTD or an XML schema, you can turn the constraints on and off to provide flexibility in the way you edit, but still maintain the validity of the document periodically.">Editing with DTD or XML schema constraints</a><br />
55<a href="../topics/txmlcat.html" title="Adding an entry to the XML Catalog"></a><br />
56<a href="../topics/tedtgram.html" title="If you make changes to a DTD file or XML schema associated with an XML file (that is currently open), click XML &gt; Reload Dependencies to update the XML file with these changes.">Updating XML files with changes made to DTDs and schemas</a><br />
57</p>
58</div><p>
59 (C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.
60</p>
61</body>
62</html>