I hope this link may help you,
This workflow will help you, dt2Xml-1.xaml (9.7 KB) Just pass your datatable to it.