The data provided to you may not be enough. Different software have different fields that are considered mandatory, and Microsoft Dynamics NAV and Microsoft Dynamics 365 Business Central are no different. Therefore, we'll need to write some code to fill in the fields that don't appear in the XML document but are needed in Microsoft Dynamics NAV and in Microsoft Dynamics 365 Business Central to create a Sales Order table.
For example, we'll have to fill in the Document Type field in both the SalesHeader and SalesLine tables. We'll also have to fill in the Type field in the SalesLine table. In addition, we'll need to find the customer number as only the name of the customer appears in the XML document, ...