Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

AL code and XML DOM : creating root element

(0) ShareShare
ReportReport
Posted on by 13

Hi,

I have need to create above root element and I have tried to solve it with Divesh AL functions.

 <FinvoiceAttachments xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FinvoiceAttachments.xsd" Version="1.0">

All my test are combination of different sort of AddRootElement, AddAttributeWithNameSpace and AddAttribute functions, but every time I will get too more or too less prefixies to my element. Do you have some known good documentation to get these parameters figured out and all other tips are welcome to beginning at my learning path. 

Br, Beemu

  • Suggested answer
    THE Italian Profile Picture
    on at
    RE: AL code and XML DOM : creating root element

    You might check what XML DOM Management codeunit 6224 does and play around with this to see if this fits your needs.

    If it does not, then you might create your own XML management CU (on prem)

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 732

#2
YUN ZHU Profile Picture

YUN ZHU 689 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 529

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans