Hello Experts.,
In AL I replaced DotNet Variable " ChildNode & FunctionNode as DotNet System.Xml.XmlNode With ChildNode & FunctionNode as XmlNode " (I need to Write code without using DotNet Variables that's why I am using XMLNode Type in My code)
and I am Trying to add new element ,but getting error.Please consider below code
Can any one Suggest me alternative code for above code.
Thanks in Advance.
You can find a lot of information in the Microsoft AL documentation about Xml, you can also find answers to similar questions here in the forum. Those questions are answered already.
There is a bug currently there that produces this issue, however, it is possible to get around this properly: You cannot mix "old technology" with "new technology". So, when you use AL to create your XML Document, you should only use the AL data types and functionality to create the document, add elements and attributes. You should not use the XMLDomManagement codeunit as this is still working with .NET variables and then the bug comes to light.