IStatMethod.SaveToXML

Fore Syntax

SaveToXML(Element: IXmlDomElement);

Fore.NET Syntax

SaveToXml(Element: Prognoz.Platform.Interop.MsXml2.IXmlDomElement);

Parameters

Element. The object, to which method parameters are saved as an XML code.

Description

The SaveToXML method unloads statistical method settings to XML code.

Fore Example

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 FreeThreadedDOMDocument60.Create;
    el := XmlDoc.createElement(
"Root");
    XmlDoc.appendChild(el);
    Eqs.SaveToXML(el);
    XmlDoc.save(
"C:\NonLinear.xml");
End Sub UserProc;

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

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.MsXml2;
Imports Prognoz.Platform.Interop.Stat;

Public Shared Sub UserProc();
Var
    XmlDoc: IXmlDomDocument3;
    el: IXmlDomElement;
    Eqs: ISmNonLinearEquations;
Begin
    Eqs := New SmNonLinearEquations.Create() As ISmNonLinearEquations;
    XmlDoc := New FreeThreadedDOMDocument60.Create();
    el := XmlDoc.createElement("Root");
    XmlDoc.appendChild(el);
    Eqs.SaveToXML(el);
    XmlDoc.save("C:\NonLinear.xml");
End Sub

See also:

IStatMethod