Datatable exporting

writeXML maybe will not do this as it is creating its own structure based on col names.

How does the origin XML look like? Can you share some sample with us.
Often also stylesheet transformations can help on such cases.

also have a look here:
RnD_Writer2Xdoc.xaml (7.4 KB)