Cubes > Cubes Assembly Interfaces > ICubeMetaUpdateEx > ICubeMetaUpdateEx.LoadFromXml
LoadFromXml(ReaderXml: Variant; Metabase: IMetabase);
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.
The LoadFromXml method loads parameters of time series database copying saved as XML code.
Executing the example requires the C:\FC_COPY.XML file that contains parameters of time series database copying as XML code. Parameters must be stored in the Root section.
Sub UserProc;
Var
Mb: IMetabase;
RubUpdateEx: ICubeMetaUpdateEx;
XmlDoc: IXMLDOMDocument3;
Element: IXmlDomElement;
Begin
Mb := MetabaseClass.Active;
RubUpdateEx := New CubeMetaUpdateClass.Create As ICubeMetaUpdateEx;
XmlDoc := New DOMDocument60.Create;
XmlDoc.load("C:\FC_COPY.XML");
Element := XmlDoc.selectSingleNode("Root") As IXmlDomElement;
RubUpdateEx.LoadFromXml(Element, Mb);
RubUpdateEx.Apply(Null);
End Sub UserProc;
After executing the example parameters of time series database copying are loaded from the XML file. The time series database is copied according to the given parameters.
See also: