Might look complex with all those Invoke Methods (but not), let me know if it works.
dt2Xml-1.xaml (11.3 KB)