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

Paul is now ready to write an application to demonstrate XML on TPF. He understands that DOM and SAX handle XML data very differently. As a result, he decides to write two different 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. Paul calls one C++ program domxml.cpp and the other saxxml.cpp. To help beginners understand the code, Paul uses comments throughout each program to explain what each API is doing.

To see how Paul uses DOM to access XML data, open Paul's DOM application (domxml.cpp) in another browser window. Read through his comments for a better understanding of how the program is structured. When you are done, close the other window by clicking the X in the upper-right corner.

To see how Paul uses SAX to access XML data, open Paul's SAX application (saxxml.cpp) in another browser window. Read through his comments for a better understanding of how the program is structured. When you are done, close the other window by clicking the X in the upper-right corner.

For More Information

  • See the following for help with application programming:
    • TPF Application Programming
    • TPF C/C++ Language Support User's Guide.
  • See the TPF XML User's Guide for more information about DOM and SAX.

PreviousNext

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

 

Close This Window.

 

    About IBM Privacy Contact