web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)
Answered

Example of creating a XML document by code

(0) ShareShare
ReportReport
Posted on by 453

Hi 

I am looking for an example of creating XML document by code in AL for Business Central. 

I couldn't find any good examples on google. 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Andrey Baludin Profile Picture
    3,943 on at

    Hi!

    Divesh wrote very good articles - how to replace XML DOM management with AL. Have a look at them:

    https://community.dynamics.com/nav/b/diveshboramsdnavblog/archive/2018/03/05/vs-code-xml-dom-management-part-1

    https://community.dynamics.com/nav/b/diveshboramsdnavblog/archive/2018/03/09/vs-code-xml-dom-management-part-2

    And how to create SOAP requests - basically here you'll find  how to create xml files with previous codeunits:

    community.dynamics.com/.../creating-soap-request-message-in-al

  • Mouli Kaku Profile Picture
    517 on at

    As mentioned Divesh articles are good help at the same time Nav team introduced new codeunit 1235 XML Buffer Writer , please have a look at it also.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans