Walk the SOM
This sample application walks through an XML Schema and prints selected parts in a tab-structured format. The DOM Schema Cache is used to store the XML Schema. The schema object is obtained by the getSchema
method of the SchemaCollection2
interface. The interfaces of the SOM are then used to walk through the items in the XML Schema. Formatting functions and methods are present throughout the application, but they are used solely for text output. They can therefore be ignored for functionality of the SOM interfaces.
This topic is divided into the following sections.
- Instructions for Running the Walk the SOM Application
- The Walk the SOM Application
- Uncommented Code for the Walk the SOM Application