| <?xml version="1.0" encoding="utf-8"?> | |
| <!--Arbortext, Inc., 1988-2006, v.4002--> | |
| <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" | |
| "task.dtd"> | |
| <task id="tedtgram" xml:lang="en-us"> | |
| <title>Updating XML files with changes made to DTDs and schemas</title> | |
| <titlealts> | |
| <searchtitle>Updating XML files with changes made to DTDs and schemas</searchtitle> | |
| </titlealts> | |
| <shortdesc>If you make changes to a DTD file or XML schema associated with | |
| an XML file (that is currently open), click <uicontrol>XML > Reload Dependencies</uicontrol> 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.</shortdesc> | |
| <prolog><metadata> | |
| <keywords><indexterm>XML editor<indexterm>updating XML files</indexterm></indexterm> | |
| <indexterm>XML files<indexterm>updating with associated changes</indexterm></indexterm> | |
| </keywords> | |
| </metadata></prolog> | |
| <taskbody> | |
| <context><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 <userinput>Contact</userinput> that can contain any of the | |
| following children elements: <userinput>Name</userinput>, <userinput>PostalAddress</userinput>,<?Pub Caret?> <userinput>Email</userinput>. | |
| If you remove the child element <userinput>Email</userinput> from the DTD, | |
| you will no longer be able to add an <userinput>Email</userinput> 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 <uicontrol>XML | |
| > Reload Dependencies</uicontrol> in the XML editor. Until you click it, you | |
| will still be able to add <userinput>Email</userinput> 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></context> | |
| </taskbody> | |
| </task> | |
| <?Pub *0000001987?> |