📚 SAP Business One SDK Help

GetDataInterfaceFromXMLFile Method
See Also  Example
bstrFileName

Specifies the path and file name of the XML data.

Description

Creates a data structure from a specified XML file.

Syntax

Visual Basic
Public Function GetDataInterfaceFromXMLFile( _
   ByVal bstrFileName As String _
) As Object

Parameters

bstrFileName

Specifies the path and file name of the XML data.

Example

Shows how to get Company Admin Info from an XML file.
GetDataInterfaceFromXMLFile (Visual Basic)Copy Code
Dim oCompanyService As SAPbobsCOM.CompanyService
Dim oCompanyAdminInfo As AdminInfo
Dim oCompanyAdminInfoXmlFile As AdminInfo

'get company service
oCompanyService = oCompany.GetCompanyService

'get admin info
oCompanyAdminInfo = oCompanyService.GetAdminInfo

'save data to xml file
oCompanyAdminInfo.ToXMLFile("C:\CompanyAdminInfo.xml")

'create CompanyAdminInfo from xml file
oCompanyAdminInfoXmlFile = oCompanyService.GetDataInterfaceFromXMLFile("C:\CompanyAdminInfo.xml")

See Also