Reading XML documents (decision engine)
After deserialization, XML documents can be read and represented as XML objects for use with the decision engine.
About this task
During deserialization, an XML object is created from an XML document. The XML document can then be read and represented as an IlrXmlObject instance. Errors are raised if the document format is not valid.
Procedure
Results
EngineDefinition definition = ...
XmlBindingService xmlBindingService = definition.getService(XmlBindingService.class);
IlrXmlDataDriver driver = xmlBindingService.getDataDriver();
try {
IlrXmlObject obj = driver.readObject(new FileReader(xmlFilename));
} catch ( IlrXmlErrorException e ) {
}