SaveToXML(Element: IXmlDomElement);
SaveToXml(Element: Prognoz.Platform.Interop.MsXml2.IXmlDomElement);
Element. The object, to which method parameters are saved as an XML code.
The SaveToXML method unloads statistical method settings to XML code.
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.
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: