In the following example we are going to: open a file, create an InStream object, create an XmlDocument using the DotNet component and load the xml from the InStream.
This example requires that you create the following variables:
System.Xml.XmlDocument.'System.Xml, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b77a5c561934e089'
HOW TO load xml from a file in C/AL?
XmlDoc := XmlDoc.XmlDocument();
Did my HOW TO help you? Leave a reply.