blob: 903c8bf1934dfc6a99aa807ee9a258bdc1365610 [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>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 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
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Deleting elements, attributes, entities, notations, and comments</title>
</head>
<body id="tremvelm"><a name="tremvelm"><!-- --></a>
<h1 class="topictitle1">Deleting elements, attributes, entities, notations, and comments</h1>
<div><p>If you have created elements, attributes, entities, notations,
and comments you no longer need, you can delete any of them. </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 delete
an element, attribute, entity, notation or comment:</p>
</div>
<ol><li class="skipspace"><span>Open your DTD in the DTD editor.</span></li>
<li class="skipspace"><span>In the Outline view, click the element, attribute, entity, notation,
or comment you want to delete.</span> If you want to delete more
than one item, hold down the<span class="uicontrol">Ctrl</span> key while you select
items.</li>
<li class="skipspace"><span>Right-click the item (or one of the items if you have selected
more than one), and, from its pop-up menu, click <span class="uicontrol">Delete</span>.</span></li>
</ol>
<div class="skipspace"><p>You can "undo" the deletion of an item. To do so, right-click any
element, attribute, entity, notation, or comment and click <span class="uicontrol">Undo
Delete</span>.  You must do this before you close the editor, otherwise,
your items will no longer exist on the system and you will have to recreate
them if you want them again.</p>
<p>The DTD editor has a built-in mechanism
to handle referential integrity issues. When you delete or rename certain
nodes, clean up will automatically occur. </p>
</div>
</div>
<div>
<blockquote>
<div class="ulchildlink"><b><a href="../topics/rrefint.html">Referential integrity in the DTD editor</a></b><br />
The DTD editor has a built-in mechanism to handle referential integrity issues. When you delete or rename certain nodes, clean up for any nodes affected will automatically occur.</div>
</blockquote>
<p>
<b class="parentlink">Parent topic:</b> <a href="../topics/tedtdtd.html" title="You can edit DTD files in both the Outline view and the Source view. Modifying the content of a DTD determines what can be used in any XML file that is associated with it.">Editing DTDs</a><br />
</p>
<p><b class="reltaskshd">Related tasks</b><br />
<a href="../topics/tcretattr.html" title="You can use an attribute to describe an element or provide information about it. Attribute lists enable you to group together all related attributes for an element.">Creating attributes and attribute lists</a><br />
<a href="../topics/tcretcomm.html" title="Comments can be used to provide information about a document, such as the author's name, or the date it was last modified. Comments are visible to anyone reading the DTD, but are ignored by the XML parser.">Creating a comment</a><br />
<a href="../topics/tcretent.html" title="An entity is a shortcut used to represent complex strings or symbols that would otherwise be impossible, difficult or repetitive to include by hand.">Creating entities</a><br />
<a href="../topics/tcretnot.html" title="Notations are means of associating a binary description with an entity or attribute. The most common uses of notations are to include familiar types of binary references, such as GIFs and JPGs, in an XML file.">Creating notations</a><br />
</p>
</div>
</body>
</html>