AX 2012: Create sales order with delivery address from an XML file Code snippet to create a sales order from an XML file. Private void createSOFromFile AxdSalesOrder salesOrder. Development tutorial Sample test + tips for using ATL.
It also depends on the size of the XML, we have seen large file sizes that caused the XMLDocument class to consume too many memory because it loads the XML in memory.You could also use the XMLTextReader if you need performance and you don't need schema validation.If you do need schema validation, you would have to stick to XMLDocument. (check out this articleCheck out this article on codeproject that explains XMLTextReader in full detail.Also, I was wondering, do you have ownership of the application that produced the XML file? If it is something you have in your own hands, you might consider creating an AIF Custom service and call this from your other application. (But I guess you are not the owner of the application producing the XML file you want to import.).