1
Answer

Write a data between xml element tags

Sairam Soham

Sairam Soham

8y
221
1

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)