Slide 16 of 22
Notes:
Begin the line with the less than sign.
Next is ElementType to identify what is to be defined.
Next is ‘name’. This is the tag name from the hierarchy.
Content must be declared using the content=“XXX” format.
Dt:type=“string, boolean, etc” is the format for data type.
The ending of the line is />. The slash is used to denote an empty element, if you are familiar with that from your XML class. This simply means that no data will be stored on this line.
Content identifies the content of the element. The choices that XML allows are eltOnly, textOnly, and mixed.
‘textOnly’ means that the element contains data. Although ‘textOnly’ sounds like it might only hold string data, this will hold any kind of data.
‘eltOnly’ means that this element can only contain other elements. An example of this is the Name element within the Taxpayer element that we looked at early in the presentation. Name contains the elements FirstName and LastName that actually contain the
Mixed is not used in this schema.