Hi Guys,
Could anyone tell me how to make a codeunit which can export a couple of fields from the customer table in XML but using the .NET xml variable called system.xml?
I am trying to understand how the basics of this works and would expect this could be done in a couple of lines of code....
Thank you!!! :-)
Thomas.
0
Comments
Just start with calling the constructor and from there it's just using the XMLDOMMgt.AddElement method.
Types:
The code above will produce:
From there you have the XMLCreatedNode which you can add to to create a child to your description element.
Remember that if you want to save, you should use XMLResultDoc.Save('Filename')
Edit: forgot the types.
I just edited my post to contain the XMLRootNode type.
I don't have a reference for .NET in C/AL. I just try and see what works.