A quick way of of dumping table records into a xml-file is to use the kernel method xml, which is present on all instances of a tablebuffer. However, the xml produced by this method is NOT well-formed.   Three problems exists: No header info for the xml-document is written  No root node is written  The data within tags are not html escaped  When the xml-method is called a call to the GLOBAL class method XMLString method is made.  With a little adjustment to this method we can make the XML data output wellformed.   But first you must add this method to the GLOBAL class:   public static str escapeHTMLChars(str _in) {     int x;     str out;     for(x=1;x<=strlen(_in);x++)     {         if ((char2num(_in,x) < 32) && (char2num(_in,x) > 126))         {             out += '&#'+num2str(...
My thoughts on Dynamics AX application development. I have been working as a consultant with Microsoft ERP-technology since 1994. Currently I work at Optimate A/S. My main focus is customization and application development. This blog is merely my place to put stuff that I want to remember. If anybody can benefit from reading this, that's great :0). Feel free to use any code snippets posted - but accept that you do this at your own risk!!!