LoadFromXML(Element: IXmlDomElement);
LoadFromXML(Element: Prognoz.Platform.Interop.MsXml2.IXmlDomElement);
Element. XML code from which method parameters should be loaded.
The LoadFromXML method loads statistical method settings from XML code.
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.
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 Main(Params: StartParams);
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;
See also: