Home >Online Product Documentation >Table of Contents >Updating the Schema of a Sample Document
This section provides instructions for updating the internal DTD for your-quotes.xml.
your-quotes.xml
When an XML document has an external DTD, you can view the external DTD in the Schema tab of the XML Editor, but you cannot edit it. To be able to edit an external DTD, you must open it in the DTD editor. When an XML document has an internal DTD, you can view and edit it in both the Schema tab and the Text tab of the XML editor.
You should have already performed the steps in Updating the Text of a Sample Document. Each of the following topics contains instructions for editing the sample XML document. You should perform the steps in each topic before you move on to the next topic. After the first topic, some steps depend on actions you performed in a previous topic.
This section includes the following topics:
For more information, see Defining a DTD - Getting Started.
Stylus Studio displays the Schema tab, and opens the Properties window. The Schema tab displays a DTD tree, which is currently empty.
Stylus Studio displays the Create Schema or DTD dialog box. By default, Stylus Studio generates an internal DTD and inserts it in a DOCTYPE element at the beginning of the document. You can also use this dialog box to generate an external XML Schema or DTD.
DOCTYPE
Stylus Studio displays a tree representation of the new, internal DTD. It also displays the Properties window.
This topic is part of a sequence. If your-quotes.xml is not open, see Opening a Sample XML Document. The sequence starts with Creating a Sample Schema.
This selects the company element definition and displays the properties for the company element in the Properties window.
company
The Content Model property indicates the allowable contents for a company element. In this example, it is Mixed, which means that a company element can contain specified elements (as opposed to all elements defined in this DTD), attributes, and raw data.
Windows like the Properties and Query Output windows are docking windows - you can change their location within the Stylus Studio window, or separate them from the Stylus Studio entirely, by dragging them to the desired location.
In the left tool bar, Stylus Studio activates only those buttons that are applicable to the DTD - you can add elements, entities, comments, and so on. But you cannot add an attribute definition, a reference to an element, or a #PCDATA node, for example.
#PCDATA
location
Stylus Studio displays an entry field for the new modifier at the end of the list of modifiers that already apply to the Sequence modifier. The entry field consists of a drop-down list of available values for the new modifier.
Sequence
At the end of the schema, Stylus Studio displays Ent and a entry field for the name of the new entity.
TCBCC
In the Properties window, Stylus Studio displays the properties for the new entity.
The Country's Best Computer Company
Stylus Studio displays a message in the Output window that indicates that the document is valid.