ILOG JRules User Guide > Integrating Application Data > Concepts > XML Binding > What is XML Binding

XML data binding is the process of representing the information in an XML document as an object in computer memory (deserialization). This allows applications to access the XML data direct from the object, rather than using the Document Object Model (DOM) to retrieve it from the XML file. This means that XML binding enables you to integrate XML data into a business rule application.

In JRules, XML data binding is carried out in two stages:

  1. At compile time, the XML Schema Definition (XSD) is processed using a schema driver. This generates an Executable Object Model (XOM). The XOM describes how the XML document and your objects are structured. The XSD is the data model and the XML document is an intantiation of this model. See Stage 1: XML Schema Processing for details.
  2. At runtime, the XML document is processed using an XML data driver, to create an XML object. See Stage 2: XML Document Processing for details.

ILOG JRules exercises the Java class IlrXmlDefaultDataDriver, which implements the IlrXmlDataDriver interface, for both these drivers.

Related Concepts

Overview: Integrating Application Data into the XOM
Execution Object Model (XOM)
Stage 1: XML Schema Processing
Stage 2: XML Document Processing
Web Service Binding
Third Party Data Access

Related Tasks

Using the XML Binding API
Using the Dynamic XOM API
Defining the Execution Object Model

Related Reference

Mapping Between XML Schema and Dynamic Classes