Configuring the XML parser

You can configure the XML parser to avoid conflicts with another parser, or to use your own.

About this task

To avoid conflict with another parser in your system, or to use your own XML parser, you must declare the XML parser to the default data driver.

The following example shows how to set up the XML parser used by the XML data driver.

Procedure

To set up the XML parser used by the XML data driver:

Use the following code:
import ilog.rules.util.IlrResources;
…
IlrResources resources = new IlrResources();
XMLReader parser = …; // Parser initialization
resources.put ( IlrXmlHelper.SCHEMA_PARSER, parser ) ;
driver = new IlrXmlDefaultDataDriver (ruleset.getReflect(),resources);