I am very new to C#, I am reading XML file in C# and want to send xml file data as tabular form in mail.
XML File is:
<log>
<logentry version='123'>
<author>Dexter</author>
<date>12 July 2017</date>
<paths>
<path action="M">C:\Desktop</path>
<path action="N">C:\Documents\test.txt</path>
</paths>
<msg>Added New file</msg>
</logentry>
<logentry version='124'>
<author>Dexter2</author>
<date>11 July 2017</date>
<paths>
<path action="M">C:\Desktop\Test\mail.cp</path>
</paths>
<msg>Added New file in test folder</msg>
</logentry>
</log>
And I am expecting table as:
And code:
string filePath = "Log.xml";
DataSet ds = new DataSet();
ds.ReadXml(filePath);
