IDtObject.Load

Syntax

Load(Element: IXMLDOMElement);

Parameters

Element. The XML element, from which data source or consumer parameters are downloaded.

Description

The Load method loads data source or data consumer parameters from XML.

Comments

To save data source or consumer parameters in XML, use the IDtObject.Save method.

Example

Executing the example requires an XML file C:\UserProvider.xml that contains custom data consumer parameters. Add links to the Dt, Metabase, Xml system assemblies.

Sub Load;
Var
    UsProv: IDtUserProviderEx;
    Doc: FreeThreadedDOMDocument60;
Begin
    UsProv := 
New DtUserProviderEx.Create;
    UsProv.Metabase := MetabaseClass.Active;
    Doc := 
New FreeThreadedDOMDocument60.Create;
    Doc.load(
"D:\UserProvider.xml");
    UsProv.Load(Doc.documentElement);
    UsProv.Open;
    UsProv.Close;
End Sub Load;

After executing the example, user data consumer parameters are loaded from the D:\UserProvider.xml file.

See also:

IDtObject