There comes times when you need to export data in XML-format from NAV.
If you’re running a ‘modern’ version you’ll have the object type XMLport to create the XML Document. In the past you would need to create the XML Document using the XML DOM (ref. COD6814 Encode XML in MS codebase).