Data types can be specified for an element or attribute. XML Authority provides schema developers with a wide range of choices for describing data types. XML Authority provides three kinds of data types:
Elements are declared in the content model pane of the Element types pane. To specify a data type for an element, right-click on the element representation in the content model pane. A pop-up context menu will appear. Select Data, and then select the data type you need from the pop-up menu. The data type will appear in the "Content Model" column. For example, Figure A shows the element type declaration for the element Title with a data type of "string".
Figure A - Declaring an element with a data type.
NOTE: Once you've changed an element to be "Data", you can change the data type, using a Qlicker from the declaration - the 'Content Model' column will change name to 'Data Type'. Click on the Insert button of the Qlicker to view a list of the available data types, and select the appropriate one.
Figure B - Using the Insert Qlicker to select an element's data type.
Attribute types are declared in the Attribute Types Pane. Part of the attribute type declaration process includes defining a data type for the attribute. An attribute type declaration, by default, sets the data type for an attribute to "string". To change the data type for an attribute, first select the cell (where "string" appears) under the "Data Type" column in the row containing the attribute. A Qlicker with one button, Type, appears (see Figure C). Click on the Type button and select the desired data type.
Figure C - Selecting a data type for an attribute.
Copyright 2000 Extensibility, Inc.
Suite 250, 200 Franklin Street, Chapel Hill, North Carolina 27516