Datatable to XML

Is there simple way for DT to XML:

Input Datatable:
Name EmpID
Bharathi 1024
Raja 1025

Output Datatable:


Bharathi
1024
Raja
1025

The solution in How to create/generate XML out of datatable is different

I get this with the linked solution. Do you need anything differently?

<?xml version="1.0" standalone="yes"?>
<DocumentElement>
  <TableName>
    <Name>Bharati</Name>
    <EmpID>1024</EmpID>
  </TableName>
  <TableName>
    <Name>Raja</Name>
    <EmpID>1025</EmpID>
  </TableName>
</DocumentElement>

Can you share the solution please? I am not getting.

In the invoke method for Dt.WriteXML pass a text file path.

Hi,

I 'm trying to convert data table to XML file and tried the shared solution,but it’s not working me. Can you please share the solution to do this.

Thanks in Advance.

Hi,

I tried again and it’s working fine.

Thanks in Advance

Hi,
Please follow below tutorial

2 Likes

thank you @karthik_bethi

Hi @Kadhambam_Pookkal,

Here is an activity called DataTable to XML File. it will give a xml with option of

image

Regards
Balamurugan.S