Load(Element: IXMLDOMElement);
Element. The XML element, from which data source or consumer parameters are downloaded.
The Load method loads data source or data consumer parameters from XML.
To save data source or consumer parameters in XML, use the IDtObject.Save method.
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: