ILOG JRules User Guide > Integrating Application Data > Tasks > Using the XML Binding API > Configuring XML Binding > Configuring the XML Parser

To avoid conflict with another parser in your system, or to use your own XML parser, you need to 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.

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

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);

Related Concepts

XML Binding
Web Service Binding

Related Tasks

Reading an XML Document
Configuring an XML Data Driver