| ILOG JRules User Guide > Integrating Application Data > Tasks > Using the XML Binding API > Adding XML Objects to the Working Memory |
Adding XML Objects to the Working Memory |
PREVIOUS NEXT |
You can add XML objects to working memory using the API, or using an asserter. Using the API you can add only the top level (root) node, not any of the sub-nodes (leaves). Using an asserter, you can either add the whole tree to working memory, or just specific nodes.
A number of options are available when loading an XML document into the rule engine:
IlrXmlObject using the data driver
IlrXmlObjectAsserter object
To add the root object of an XML document:
in and from keywords in your rules.
To add IlrXmlObject using the data driver:
To use an IlrXmlObjectAsserter object:
IlrXmlObjectAsserter, you can filter the objects inserted in the working memory. Here, all the objects have been inserted, so there is no need to use the in or from in your rules. Here is an extract fromthis type of rule:
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |