biuan SAP® BUSINESS ONE SDK
API Company Service / Get Data Interface From XML File

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)
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



SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates