Creating CLP scripts to register an XML schema

You can create a command line processor (CLP) script that you can run later to register an XML schema on a DB2® for Linux®, UNIX®, and Windows® Version 9.1 or Version 9.5 database.

Before you begin

Before you create a CLP script, ensure the following have been created:

About this task

To create a CLP script, you can use the Generate XML Schema Registration CLP Script wizard or the Register an XML Schema wizard. If you use the Register an XML Schema wizard, the CLP script is generated, and the registration is also completed. If you use the Generate XML Schema Registration CLP Script wizard, the CLP script is generated, but the registration is not completed.

Procedure

To create a CLP script to register an XML schema:

  1. Right-click the XML Schema Documents folder or an XSD file in a data development project in the Data Project Explorer and select Generate CLP Registration Script.
  2. Complete the steps of the wizard. For additional help with the wizard, press F1. A temporary file containing the CLP script opens in the text editor.
  3. Optional: Modify the file in the editor, and save it to the file system by clicking File > Save As, and specifying a local directory.

Results

You can run the script outside of the workbench to register the XML schema that you selected.

Feedback