Parameterizing an XML data driver

You can use a resource file to parameterize an XML data driver.

About this task

To parameterize an XML data driver you can use a resource file which consists of named and valued properties.

Procedure

To parameterize an XML data driver:

  1. If you do not already have a resource file, create one.
  2. Add the necessary properties to the resource file.

    The XML binding processes the following properties:

    • ilog.rules.xml.xomMapperClass property: the fully qualified class name of the schema-XOM mapper.

    • ilog.rules.xml.errorHandlerClass property: the fully qualified class name of the error handler.

    • ilog.rules.xml.schemaParserClass property: the fully qualified class name of the XML parser class used to parse the XML schema.

    • ilog.rules.xml.documentParserClass property: the fully qualified class name of the XML parser class used to parse the XML document.

  3. Use the contents of the resource file to create an instance of the XML data driver.

Results

When an XML data driver is created without a resource file being specified, the resource related to its XOM IlrReflect instances is used, if it exists. In this way, any XML data driver can be parameterized through the global engine resource file.