XML on TPF: A Short Tutorial Page 2 of 14
Getting Started
To help you gain hands-on experience with XML on TPF, this path provides a sample DTD, a sample XML Schema document, and an XML document based on each. You will also get two sample applications with instructions for using these pieces on TPF. This path takes you step-by-step through a series
of tasks:
First, you will save a copy of a sample Document Type Definition (DTD) and an XML document to your workstation.
A DTD defines all the allowable elements and attributes (as well as the structure of those elements and attributes) that are used for writing the XML document.
Next, you will save a copy of a sample XML Schema document and an XML document based on that XML Schema to your workstation.
An XML Schema document also defines all the allowable elements, attributes, and structures, but uses a different syntax than a DTD and generally allows you to be more detailed in the definitions.
Next, you will save a copy of two sample TPF applications written in C++ that do the following:
Use the DOM API with validation against a DTD or XML Schema
Use the DOM API without validation
Use the SAX API with validation against a DTD or XML Schema
Use the SAX API without validation.
Before you can use the sample applications, you will prepare a TPF 4.1 test system to receive file transfers from your workstation and then FTP the DTD, XML Schema, and XML documents to the TPF file system.
Finally, you will actually use the applications to interact with the sample XML data on your TPF 4.1 test system.
While you do not need to fully understand the syntax of writing a DTD, XML Schema, or XML document to successfully complete this
tutorial, we encourage you to study all the samples as well as the applications to see how they are written. Use the
books and Web sites identified in the TPF XML User's Guide to learn more about their syntax.
For More Information
See the TPF XML User's Guide for:
A list of books and Web sites for learning more on a variety of XML subjects