IStatMethod.LoadFromXML

Syntax

LoadFromXML(Element: IXmlDomElement);

Parameters

Element. XML code from which method parameters should be loaded.

Description

The LoadFromXML method loads statistical method settings from XML code.

Example

Executing this example requires the C:\NonLinear.xml file containing parameters of non-linear equation system calculation as XML code. Parameters are to be stored in Root section.

Add links to the Stat and Xml system assemblies.

Sub UserProc;
Var
    XmlDoc: IXmlDomDocument3;
    el: IXmlDomElement;
    Eqs: ISmNonLinearEquations;
Begin
    Eqs := New SmNonLinearEquations.Create As ISmNonLinearEquations;
    XmlDoc := New DOMDocument60.Create;
    XmlDoc.load("C:\NonLinear.xml");
    el := XmlDoc.selectSingleNode("Root"As IXmlDomElement;
    Eqs.LoadFromXML(el);
End Sub UserProc;

After executing the example parameters of non-linear equation system calculation saved as XML code, are loaded from the C:\NonLinear.xml file.

See also:

IStatMethod