Instance import

Syntax

	$xml.instanceImport(transient: false)

Description

Rereads an XML file that was created with the instanceExport() function and creates the objects contained in it and returns the root objects as the result.

Parameters

File name Type Type Description Mandatory Default
xml XML file (binary value) The XML file from which objects are to be read in Yes -
transient Truth value Whether the object creation should be transient. If the persistent objects are created, the function must be called from a transaction context. no false
context Object The context object in which this import is carried out. The context can be used by instance resolvers, for example, to resolve local identifiers in their context. Typically, the context for an import is the container of the composition in which the exported object was located when the export was created. no null

Return value

Type: Set of objects

The set of exported objects. Objects that were also exported because they were contained in composition references are not explicitly returned.