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=126.96.36.199, 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.