After you save an annotated XML schema, you can test its map links. The test runs the DB2 decomposition stored procedure named SYSPROC.XDBDECOMPXML, which uses the annotated XML schema to extract data from an XML document that you specify.
In addition to running SYSPROC.XDBDECOMPXML, the test process can validate the XML document against the annotated XML schema.
If no errors occur during the testing process, you can load the data that is in the XML document into the appropriate relational database columns.
Requirement: The annotated XML schema must be open in the IBM XML Schema Mapping Designer and saved in a database schema.
To test an annotated XML schema:
The Test Form window opens.
This option is exercised only when no errors occur during the test.
If the test fails, the following message is displayed in the Result field in the Test Form window:
Error decomposing XML document.
A message that describes the error condition is displayed in the IBM Output Message Pane.
Annotating XML Schemas | Saving Annotated XML Schemas | IBM XML Schema Mapping Designer