AX – D365FO – Create an XML file in X++

Reference article : https://shyamkannadasan.blogspot.com/2016/06/ax-creates-xml-file-in-x-containing.html This example create an XML file in X++ containing employee details static void XMLWriteEmplAddr(Args _args) { FileIoPermission permission; XMLDocument xmlDoc = XMLDocument::newBlank(); XMLNode rootNode; XMLNode NodeEmpl, NodeName, NodeAddr; XMLElement xmlElement; XMLText xmlText; HCMWorker HCMWorker; permission= new FileIoPermission('C:\\Altitudo\\Empl_Details_List.xml','w'); permission.assert(); xmlDoc = XMLDocument::newBlank(); // Create first line containing version info rootNode = xmlDoc.documentElement(); … Continue reading AX – D365FO – Create an XML file in X++