ICubeMetaUpdateEx.LoadFromXml

Syntax

LoadFromXml(ReaderXml: Variant; Metabase: IMetabase);

Parameters

ReaderXml. The object from which parameters of time series database copying are to be loaded;

Metabase. The repository to which the time series database will be loaded.

Description

The LoadFromXml method loads parameters of time series database copying saved as XML code.

Example

Executing the example requires the C:\FC_COPY.XML file that contains parameters of time series database copying as XML code. The parameters must be stored in the Root section.

Sub Main;

Var

mb: IMetabase;

RubUpdateEx: ICubeMetaUpdateEx;

XmlDoc: IXMLDOMDocument3;

el: IXmlDomElement;

Progress: IMetabaseUpdateProgress;

Begin

mb := MetabaseClass.Active;

RubUpdateEx := New CubeMetaUpdateClass.Create As ICubeMetaUpdateEx;

XmlDoc := New DOMDocument60.Create;

XmlDoc.load("C:\FC_COPY.XML");

el := XmlDoc.selectSingleNode("Root") As IXmlDomElement;

RubUpdateEx.LoadFromXml(el, mb);

RubUpdateEx.Apply(Progress);

End Sub Main;

After executing the example parameters of time series database copying saved as XML code are loaded from the C:\FC_COPY.XML file. The time series database is copied according to the given parameters.

See also:

ICubeMetaUpdateEx