XML on TPF: A Short Tutorial Page 6 of 10
Create the Sample XML Data Based on the XML Schema
Paul now writes the same sample data in an XML document based on his XML Schema rather than his DTD. He begins with
the XML declaration statement, which includes the encoding he is using for this document:
<?xml version="1.0" encoding="ISO-8859-1"?>
Next, he adds the statement to declare the root element of the XML document (PNRroot) and the XML Schema document on which the XML document is written (pnrs.xsd):
Finally, he can create some sample data by using the element and attribute names defined in the XML Schema.
When he is done writing the sample XML data, Paul saves it to his workstation as pnrs.xml.