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
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156