This example illustrates the use of the XML parser.
- application code must include header files:
- ../../xml/xml.h (includes utilities.h)
- application compilation must include source code from the directories:
- ../../xml
- ../../library
- ../../utilities
- application compilation must define macros:
The compiled example will execute the following cases. Run the application with no arguments for application usage.
- case 1: Display application information. (type names, type sizes and defined macros)
- case 2: Illustrate parsing a simple XML file with no XML declaration or DTD.
- case 3: Illustrate displaying the Processing Instructions and comments found in an XML document.
- case 4: Illustrate displaying implicit and explicit XML declaration and parsing UTF-16 encoded files.
- case 5: Illustrate parsing the DTD and applying entities and default attributes.