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.