IBM®
Skip to main content
    United States [change]      Terms of use
 
 
   
     Home      Products      Services & solutions      Support & downloads      My account     
     
  XML on TPF: A Short Tutorial IBM

XML on TPF: A Short Tutorial — Page 2 of 10
Scenario

Paul is a TPF application programmer and has been asked to put together a demonstration of how a TPF application written in C++ language can interact with XML data. Paul decides to create some sample XML data and then write an application that will display that data. Although most applications will do more with XML data than simply display it, Paul wants his application to show the basics of interacting with XML data on TPF. His application shows how to do each of 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.

XML data is presented through elements and attributes that, together, create an XML document. Paul needs to create some sample XML data for his application to interact with. He creates both a DTD and XML Schema document, both of which define all the allowable elements and attributes (as well as the structure of those elements and attributes) using different syntax. He also creates two XML documents: one that is based on the DTD and one that is based on the XML Schema. Paul is already familiar with the necessary syntax for writing DTDs, XML Schemas, and XML documents.

For More Information
See the TPF XML User's Guide for the following:

  • A list of resources that Paul used to learn DTD, XML Schema, and XML syntax rules
  • More information about comparing DTDs with XML Schemas, DOM, SAX, and validation
  • More information about elements and attributes.

PreviousNext

Back to the Beginning
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10

 

Close This Window.

 

    About IBM Privacy Contact