ICubeMetaUpdateEx.LoadFromXml

Syntax

LoadFromXml(ReaderXml: Variant; Metabase: IMetabase);

Parameters

ReaderXml. The object, from which time series database replication parameters are loaded.

Metabase. The repository, to which time series databases will be replicated.

Description

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

Example

Executing the example requires the C:\FC_COPY.XML file that contains time series database replication parameters 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 time series database replication parameters saved as XML code are loaded from the C:\FC_COPY.XML file. The time series database is copied according to these parameters.

See also:

ICubeMetaUpdateEx