blob: a23b95f97f4b32450d3598e56f539e0ee0e22d30 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<!-- /*******************************************************************************
* 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
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Updating XML files with changes made to DTDs and schemas</title>
<body id="tedtgram"><a name="tedtgram"><!-- --></a>
<h1 class="topictitle1">Updating XML files with changes made to DTDs and schemas</h1>
<div><p>If you make changes to a DTD file or XML schema associated with
an XML file (that is currently open), click <b> <span class="uicontrol">XML &gt; Reload Dependencies</span>
update the XML file with these changes.</p><div class="skipspace"><p>The changes will be reflected in the guided editing mechanisms
available in the editor, such as content assist.</p>
<p>For example, you have
a DTD file called "Contact.dtd" and an XML file called "Contact.xml" associated
with it. Contact.dtd contains a root element called <span class="uicontrol">Contact</span> that
can contain any of the following children elements: <span class="uicontrol">Name</span>,
<span class="uicontrol">PostalAddress</span>, <span class="uicontrol">Email</span>. If you
remove the child element <span class="uicontrol">Email</span> from the DTD, you will
no longer be able to add an <span class="uicontrol">Email</span> child element to
your root element Contact in your Contact.xml file. This change, however,
will not come into effect until you save your changes in the DTD and click <b> <span class="uicontrol">XML
&gt; Reload Dependencies</span></b> in the XML editor. Until you click it, you
will still be able to add <span class="uicontrol">Email</span> elements to Contact.xml.</p>
feature is very handy when you are making updates to both DTDs and XML schemas
and XML files that are associated with DTDs and XML schemas.</p>
<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><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/tedtdoc.html" title="The DOCTYPE declaration in an XML file is used at the beginning of it to associate it with a DTD file. You can edit your DOCTYPE declaration to change the DTD file your XML file is associated with.">Editing your DOCTYPE declaration</a><br />
<a href="../topics/txmlcat.html" title="Adding an entry to the XML Catalog">Adding an entry to the XML Catalog</a><br />
<a href="../topics/tedtsch.html" title="Your namespace information is used to provide various information about the XML file, such as the XML schema it is associated with.?">Editing your namespace information</a><br />