从数据集创建XML文件。请将节点排列成以下格式

时间:2009-11-04 04:54:25

标签: c# xml

我从认证表填写我的数据集。列是以下

   Certification_name
   certification_id
   No_of_question,
   Question_name,
   Question_id
   Answer1
   Answer2
   Answer3
   Answer4
   Answer5

我想生成像Follow

这样的Xml文件
  <Root>
   <Certification Certification_id="2" no_of_Question="10" certification_name="Test India">
     <question question_id="2" question_name="what is the Capital of India">
       <Answer1>Delhi</Answer1>
       <Answer2>New Delhi</Answer2>
       <Answer3>Mumbai</Answer3>
       <Answer4>Kolkata</Answer4>
    </question>
   </certification>
  </Root> 

请帮助我......

我的名字是--Vikas Mishra Emailid-brish.mishra@gmail.com

1 个答案:

答案 0 :(得分:1)

Gelatin旨在解决此类问题。