Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The XSD files contain the schema definition of the data. They describe the attributes of each data element in an XML file—that is, what is acceptable for the user to type or select when editing the job info sheet.

The XSD file also constrains the data to standard types—for example, integer or string. This prevents errors such as entering text in a field that should only contain numbers. 

For example, the following portion of an XSD file specifies that the values for the TotalQuantity data element must be strings:

<xs:element name="TotalQuantity" type="xs:string"/>

Another example is a turnaround time field, which creates a selectable list of three values:

<xs:element name="Turnaround">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="One Day"/>
<xs:enumeration value="Two Day"/>
<xs:enumeration value="One Week"/>
</xs:restriction>
</xs:simpleType>
</xs:element>

  • No labels