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 7 of 14
Write the Sample Applications

DOM and SAX handle XML data very differently, so we have included two sample applications: one that uses the DOM API and one that uses the SAX API.

XML on TPF requires the application to be written in C++ language. One C++ program is called domxml.cpp and the other saxxml.cpp. To help you understand the code, comments are used throughout each program to explain what each API is doing.

Before continuing, do the following:
  1. Open the sample DOM application (domxml.cpp) in another browser window.
  2. Click File --> Save As.
  3. Save the file in C:\xmltut as domxml.cpp. The default file name may be domxml.cpp.txt. If this is true, ensure that you remove the .txt extension.
  4. Close the window by clicking the X in the upper-right corner.
  5. Open the sample SAX application (saxxml.cpp) in another browser window.
  6. Click File --> Save As.
  7. Save the file in C:\xmltut as saxxml.cpp. The default file name may be saxxml.cpp.txt. If this is true, ensure that you remove the .txt extension.
  8. Close the window by clicking the X in the upper-right corner.
Once you have saved both applications, you are ready to continue.

For More Information
The following will help you with application programming:

  • TPF Application Programming
  • TPF C/C++ Language Support User's Guide
  • TPF XML User's Guide.

PreviousNext

Back to the Beginning
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14

 

Close This Window.

 

    About IBM Privacy Contact