XML : Reading the string from a txt file and converting it to elements in xml using c#

I have a string like this { {Name Mike} {age 19} {gender male}} in a txt file. I would like this to be converted to xml as the below output. As i am to this, it seems to be pretty doubts for me.

  <name>Mike</name>  <age>19</age>  <gender>male</male>    

any help would be appreciated.

No comments:

Post a Comment