ElementType Declarations
Declaring the elements
- Order
- Format
- Beginning ‘<‘
- ElementType
- Name
- Content
- Dt:type
- Ending ‘/>’
Notes:
The methodology we used to generate this schema was to set up a database. This gave us a dependable, stable data source that was easily maintainable. A program was written using C++ that creates the schema.
- Each tag name that we use in the hierarchy must be declared in the schema using the ‘ElementType’ statement.
- The ElementType declaration is best done for an item before it is included as a child of another element.
- Another way to view this is that the elements that contain text, rather than other elements are handled first.
- Although the first half of the schema is in alphabetical order, this is only because that was the choice of the programmer to alphabetize the elements that did not have child elements.
- The order in which a schema is written is not hard and fast. The language is still growing.
- Each line begins with a less than sign. All XML schemas are XML files and must conform to the required XML syntax.
- Let’s look at the AccountingMethod line as an example.
- Note to self: Go to next slide.