Instance.createInstanceFromXML()
Signature
Concept createInstanceFromXML (String uri, String xml)
Description
This function creates a new Concept instance by deserializing the XML data provided.
If uri
is null, then the URI will be inferred from the namespace in xml
.
The form of of the XML data provided is expected to be the same as the output from serialize()
.
The new Concept instance is added to the working memory. Adding the instance to the working memory will
cause any rule conditions that depend on the concept to be evaluated.
Parameters
Name | Type | Description |
uri | URI | concept. |
xml | String | XML string to be parsed |
Returns
Type | Description |
Concept | The newly created concept |
Cautions
none. This function asserts the created concept but this assert will not fire any rules.