Instance.createTransientInstanceFromXML()

Signature

Concept createTransientInstanceFromXML (String uri, String xml)

Domain

action

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 newly created Concept instance is NOT added to the working memory.

Parameters

NameTypeDescription
uriStringURI of the concept as defined in the project. If uri is null, then the function will use the XML to parse the namespace and create the corresponding concept.
xmlStringXML string to be parsed

Returns

TypeDescription
ConceptThe newly created concept

Cautions

none. The function does not assert the created concept.