blob: 683577c0b1444958de12c567886df1ce5ffe372e [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 lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Editing namespace information" />
<meta name="abstract" content="Your namespace information is used to provide various information about the XML file, such as the XML schema and namespace it is associated with. If desired, you can change the schema and namespace your XML file is associated with or add a new association. Modifying any associations can impact what content is allowed in the XML file." />
<meta name="description" content="Your namespace information is used to provide various information about the XML file, such as the XML schema and namespace it is associated with. If desired, you can change the schema and namespace your XML file is associated with or add a new association. Modifying any associations can impact what content is allowed in the XML file." />
<meta content="XML editor, namespace information, XML files" name="DC.subject" />
<meta content="XML editor, namespace information, XML files" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/cxmlcat.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/tedtcnst.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/txmlcat.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/tedtgram.html" />
<meta scheme="URI" name="DC.Relation" content="../../org.eclipse.wst.xsdeditor.doc.user/topics/rnmspc.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/txedtdes.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tedtsch" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Editing namespace information</title>
</head>
<body id="tedtsch"><a name="tedtsch"><!-- --></a>
<h1 class="topictitle1">Editing namespace information</h1>
<div><p>Your namespace information is used to provide various information
about the XML file, such as the XML schema and namespace it is associated
with. If desired, you can change the schema and namespace your XML file is
associated with or add a new association. Modifying any associations can impact
what content is allowed in the XML file.</p>
<div class="section"><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, complete the following steps:</p>
</div>
<ol>
<li class="stepexpand"><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="stepexpand"><span>Your XML file can 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="stepexpand"><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. For
more information, see <a href="../../org.eclipse.wst.xsdeditor.doc.user/topics/rnmspc.html">XML namespaces</a>.</li>
<li class="stepexpand"><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="stepexpand"><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="stepexpand"><span>Click <span class="uicontrol">OK</span>, then click <span class="uicontrol">OK</span> again.</span>
</li>
</ol>
<div class="section"><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 select the <span class="uicontrol">Specify
From Registered Namespace</span> radio button and select the namespace
declarations you want to add or select the <span class="uicontrol">Specify New Namespace</span> radio
button and fill in the fields as necessary.</p>
</div>
<div class="section">If you do not have namespace information in your XML file, you can
right-click your root element in the Design view and click <span class="uicontrol">Edit
Namespaces</span> to add it. If you do not have a root element, you must
create one before you can add the namespace information.</div>
</div>
<div><div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../topics/cxmlcat.html" title="When an XML file is associated with a DTD or XML schema, it is bound by any structural rules contained in the DTD or XML schema. To be considered a valid XML file, a document must be accompanied by a DTD or an XML schema, and conform to all of the declarations in the DTD or the XML schema.">XML file associations with DTDs and XML schemas</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="../topics/tedtcnst.html" title="In the Design view, when you edit an XML file that has a set of constraints or 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></div>
<div><a href="../topics/txmlcat.html" title="An XML Catalog entry contains two parts - a Key (which represents a DTD or XML schema) and a Location (similar to a URI, which contains information about a DTD or XML schema's location). You can place the Key in an XML file. When the XML processor encounters it, it will use the XML Catalog entry to find the location of the DTD or XML schema associated with the Key">Adding entries to the XML Catalog</a></div>
<div><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. The changes will be reflected in the guided editing mechanisms available in the editor, such as content assist.">Updating XML files with changes made to DTDs and schemas</a></div>
<div><a href="../topics/txedtdes.html" title="The XML editor has a Design view, which represents the XML file simultaneously as a table and a tree. This helps make navigation and editing easier. Content and attribute values can be edited directly in the table cells, while pop-up menus on the tree elements give alternatives that are valid for that particular element.">Editing in the Design view</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../../org.eclipse.wst.xsdeditor.doc.user/topics/rnmspc.html">XML namespaces</a></div>
</div>
</div>
</body>
</html>