ImportFromXML Method

Description

Imports the specified XML file to the specified object repository.

Important Information

This method can be used only to import XML files into new shared object repositories (*.tsr files).  It cannot be used with local object repositories.

Syntax

object.ImportFromXML(SourceFile, TargetFile)

Syntax Details

ArgumentDescription
objectAn expression evaluating to an object of type ObjectRepositoryUtil.
SourceFileRequired. A String value. The full name and path of the XML file you want to import into the new object repository.
TargetFileRequired. A String value. The full name and path of the new object repository file to which you want to import the XML file. The object repository file must be a new file (one that does not already exist). The folder path must be an existing one.

Return Type

A Variant value.  The full name of the new shared object repository.