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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

[AL] Xml variables methods problem

(0) ShareShare
ReportReport
Posted on by 217

Hi,

I'm actualy working on a project to convert from CAL to AL (in order to deploy to Business Central). There is a lot of DotNet variables in it, especially xml variables. So I use some methods given by MS ( https://docs.microsoft.com/fr-fr/dynamics365/business-central/dev-itpro/developer/devenv-restapi-overview ), but I'm in struggle with this kind of lines:

XmlAttributes.GetNamedItem(Text)

XmlDocument.GetElementsByTagName(Text)

XmlElementField.HasChildNodes()

-> Can't find a way to do this in AL.

Is someone has already hit this kind of problem and has a way to solve it ?

Thanks !

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    You're right, there's actually no a direct implementation of these methods.

    I think you can use others, like XmlAttributeCollection Class or XmlDocument.GetChildElements() or XmlElement.GetChildNodes() to obtain the same result.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans