Sairam Soham

Sairam Soham

  • NA
  • 47
  • 28.3k

Write a data between xml element tags

Aug 27 2016 5:50 PM

My data is in the dataset.

I want to render the folowing

 <ChangeDate>DateValue</ChangeDate>

Datevalue is comming from dataset

I am using Serialization

 System.Xml.Serialization.XmlSerializer ser = new System.Xml.Serialization.XmlSerializer(typeof(ConfigurationBatchImportRoot));

foreach (DataRow row in ds.Tables[0].Rows)
{

  }


For each row in the for loop I need to render

<ChangeDate>DateValue</ChangeDate>

For every element in the xml file I have defined classes

For each attribute of xml element, I defined as the property

I am able to render this successfully.

I am having difficulty only to render the data beween xml element tags

How to do this?
 


Answers (1)