XML on TPF: A Short Tutorial Page 5 of 10
Create a Sample XML Schema
Using an XML Schema is another method of defining the acceptable tags for an XML document. An XML Schema is written in XML syntax and typically resides in a file that is separate from the XML document. The XML document must refer to the specific XML Schema document on which it is written.
Paul decides to create an XML Schema that coincides with the DTD for a PNR that he wrote previously. He
knows that the organization of data in an XML document is the key to its success. However, Paul is less focused on
an actual implementation of this XML Schema and more focused on demonstrating the various ways to write XML data: