blob: 27456094fc3f75dee374fbcf6a98a80b20c51534 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../com.ibm.help.doc/swg_info_common.css" />
<title>Editing your namespace information</title>
<script language="JavaScript">
function popup_window( url, id, width, height )
{
popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + ',left=,top=' );
popup.focus();
}
</script><script language="JavaScript" src="help/liveHelp.js"></script></head>
<body id="tedtsch"><a name="tedtsch"><!-- --></a>
<h1 class="topictitle1">Editing your namespace information</h1>
<div><p>Your namespace information is used to provide various information
about 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,
but they will also work in many other perspectives.</p>
<p>To edit your schema
information, follow these steps:</p>
</div>
<ol><li class="skipspace"><span>In the Design view of the XML editor, right-click
your root element and click <span class="uicontrol">Edit Namespaces</span>.</span></li>
<li class="skipspace"><span>Your XML file may be associated with more than one namespace or
schema.</span> Select the entry you want to edit and click <span class="uicontrol">Edit</span>.</li>
<li class="skipspace"><span>The value in the <span class="uicontrol">Namespace Name</span> field is
a namespace the XML file is associated with.</span> Your XML file should
be associated with the same namespace(s) its XML schema is associated with.
For more information about namespaces, refer to the related reference.</li>
<li class="skipspace"><span>All qualified elements and attributes in the XML file associated
with the namespace will be prefixed with the <span class="uicontrol">Prefix</span> value. </span></li>
<li class="skipspace"><span>The <span class="uicontrol">Location Hint</span> field contains the location
of the XML schema the XML file is associated with.</span> An XML Catalog
Key or a namespace name can be specified in this field.  Click <span class="uicontrol">Browse</span> to
view all XML schemas in the workbench and XML Catalog. </li>
<li class="skipspace"><span>Click <span class="uicontrol">OK</span>, then click <span class="uicontrol">OK</span> again.</span></li>
</ol>
<div class="skipspace"><p>If you want to create a new association, click <span class="uicontrol">Add</span> instead
of <span class="uicontrol">Edit</span>. You can then either click the <span class="uicontrol">Specify
From Registered Namespace</span> radio button and select the namespace
declarations you want to add or click the <span class="uicontrol">Specify New Namespace</span> radio
button and fill in the fields as necessary. </p>
</div>
</div>
<div>
<p><b class="relconceptshd">Related concepts</b><br />
<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 />
</p>
<p><b class="reltaskshd">Related tasks</b><br />
<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 />
<a href="../topics/txmlcat.html" title="Adding an entry to the XML Catalog"></a><br />
<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 />
</p>
</div><p>
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.
</p>
</body>
</html>