Use the Test Form window to test an annotated XML schema
against an XML document. 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.
To open the Test Form window:
With the registered annotated XML schema open in
the Annotated XML Schema view, right-click in the
Mapping Editor section, and then select
Test on the shortcut menu.
The Test command is available only
after the annotated XML schema has been saved in a
database schema.
Input XML file
Shows the name of the XML document to use to test the
annotated XML schema.
Click to browse to and select
the XML document that you want to use.
XML file source
Shows the contents of XML file whose name is displayed in
the Input XML file field.
Validation
If this value is True, the XML document is validated
against the annotated XML schema during testing.
Commit after execution
If this value is True and if the test is error-free,
the mapped data in the XML document is committed to
the database when the test is completed.
Result
Shows a message that indicates whether the test was
successful. If the test is not successful, a message
that describes the error condition is displayed in the
IBM Output Message Pane.