blob: 654454514dadf2356ef85261cd4c8cedb96d7d86 [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>Updating XML files with changes made to DTDs and schemas</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="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 <span class="uicontrol">XML &gt; Reload Dependencies</span> to
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 <span class="uicontrol">XML
&gt; Reload Dependencies</span> 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>
<p>This
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>
</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/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"></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 />
</p>
</div><p>
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.
</p>
</body>
</html>