I want to make an XML File from code in AL. I am using XMLDoc and its related data types. I have made a codeunit that handles almost everything what I need.
I have a problem when I am setting attributes to the XmlElement. This whole thing is not working if attribute name contains ":" (colon). I know that colon means namespace, but how can I add a namespace to the XmlElement?
I was trying to do something with XMLNamespaceManager, but it didn't help.
Here's my attempt:
but it didn't affect the resultant file...
Any help will be appreciated!