Sarath Kumar

Sarath Kumar

  • NA
  • 443
  • 333.8k

Write xml code in c#

Apr 24 2014 8:58 AM

Hi, I have to write xml code with subnodes. i can't understand how to write subnodes. any one please help me.......

Here is my xml code:

<test xlink:label="L398" xp:origlabel="L398" xp:templateversion="2.1" href="index_398.html" xp:description="" Version="2.1.085.1" complexity="1" PageTemplate="yes" type="Learning" threshold="100" xp:name="Test" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<tm xlink:label="L400" xp:origlabel="L400" xp:templateversion="2.1" href="index_400.html" xp:description="Text Single Choice" Version="2.1.085.1" complexity="1" PageTemplate="yes" ItemTemplate="yes" ShowMenu="Yes" mandatory="Yes" Layout="2V" hSize="50" wSize="50" XUACompatible="IE=10" enableiframe="No" Delay="1" Effect="Fade" xp:name="TextMedia" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L406" xp:origlabel="L406" complexity="1" H xp:description="Text" xp:name="Text">Text for Question column: this TSC includes 3 choices</t>
<mc xlink:label="L421" xp:origlabel="L421" xp:templateversion="2.1" href="mc_421.html" xp:description="" Version="2.1.085.1" complexity="1" ItemTemplate="yes" AllowedAttempts="1" IntMode="MC" IntType="L" showFbIcon="YES" FeedbackPresentation="PopUp" cSize="70" weight="1" shuffle="YES" xp:name="MultipleChoice" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<i xp:fieldtype="text" xlink:label="L422" xp:origlabel="L422" xp:description="Text" xp:name="Instruction">Text for Hint column - TSC</i>
<cs xlink:label="L423" xp:origlabel="L423" xp:description="" complexity="3" xp:name="Choices" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<c xlink:label="L425" xp:origlabel="L425" xp:description="" isCorrect="Yes" xp:name="Choice" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L427" xp:origlabel="L427" xp:description="Text" xp:name="Text">Choice 1 - Correct (for Answer_1 column and for Solution column as well because this is the correct answer, therefore CorrectAnswer column = 1)</t>
</c>
<c xlink:label="L426" xp:origlabel="L426" xp:description="" isCorrect="No" xp:name="Choice" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L428" xp:origlabel="L428" xp:description="Text" xp:name="Text">Choice 2 - Wrong (for Answer_2 column)</t>
</c>
<c xlink:label="L474" xp:origlabel="L474" xp:description="" isCorrect="No" xp:name="Choice" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L475" xp:origlabel="L475" xp:description="Text" xp:name="Text">Choice 3 - Wrong (for Answer_3 column)</t>
</c>
</cs>
<f xlink:label="L424" xp:origlabel="L424" xp:description="" complexity="3" xp:name="Feedbacks" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<cf xlink:label="L429" xp:origlabel="L429" xp:description="" xp:name="Correct" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L432" xp:origlabel="L432" xp:description="Text" xp:name="Text">Correct selection feedback text for column PassFeedback</t>
</cf>
<wf xlink:label="L430" xp:origlabel="L430" xp:description="" xp:name="Wrong" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L433" xp:origlabel="L433" xp:description="Text" xp:name="Text">Wrong selection feedback text for column FailFeedback</t>
</wf>
<vf xlink:label="L431" xp:origlabel="L431" xp:description="" xp:name="View" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L434" xp:origlabel="L434" xp:description="Text" xp:name="Text">View solution feedback text for column MasteryFeedback</t>
</vf>
</f>
</mc>
</tm>
<tm xlink:label="L435" xp:origlabel="L435" xp:templateversion="2.1" href="index_435.html" xp:description="Text Multiple Choice" Version="2.1.085.1" complexity="1" PageTemplate="yes" ItemTemplate="yes" ShowMenu="Yes" mandatory="Yes" Layout="2V" hSize="50" wSize="50" XUACompatible="IE=10" enableiframe="No" Delay="1" Effect="Fade" xp:name="TextMedia" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L437" xp:origlabel="L437" complexity="1" H xp:description="Text" xp:name="Text">Text for Question column: this TMC includes 3 choices</t>
<mc xlink:label="L438" xp:origlabel="L438" xp:templateversion="2.1" href="mc_438.html" xp:description="" Version="2.1.085.1" complexity="1" ItemTemplate="yes" AllowedAttempts="1" IntMode="MR" IntType="L" showFbIcon="YES" FeedbackPresentation="PopUp" cSize="70" weight="1" shuffle="NO" xp:name="MultipleChoice" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<i xp:fieldtype="text" xlink:label="L476" xp:origlabel="L476" xp:description="Text" xp:name="Instruction">Text for Hint column - TMC</i>
<cs xlink:label="L477" xp:origlabel="L477" xp:description="" complexity="3" xp:name="Choices" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<c xlink:label="L478" xp:origlabel="L478" xp:description="" isCorrect="Yes" xp:name="Choice" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L479" xp:origlabel="L479" xp:description="Text" xp:name="Text">Choice 1 - Correct (for Answer_1 column and for Solution column in a comma-separated list; additionally AnswerCorrect_1 = 1)</t>
</c>
<c xlink:label="L480" xp:origlabel="L480" xp:description="" isCorrect="No" xp:name="Choice" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L481" xp:origlabel="L481" xp:description="Text" xp:name="Text">Choice 2 - Wrong (for Answer_2 column; ; additionally AnswerCorrect_2 = 0)</t>
</c>
<c xlink:label="L482" xp:origlabel="L482" xp:description="" isCorrect="Yes" xp:name="Choice" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L483" xp:origlabel="L483" xp:description="Text" xp:name="Text">Choice 3 - Correct (for Answer_3 column and for Solution column as well in a comma-separated list; additionally AnswerCorrect_3 = 1)</t>
</c>
</cs>
<f xlink:label="L484" xp:origlabel="L484" xp:description="" complexity="3" xp:name="Feedbacks" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<cf xlink:label="L485" xp:origlabel="L485" xp:description="" xp:name="Correct" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L486" xp:origlabel="L486" xp:description="Text" xp:name="Text">Correct selection feedback text for column PassFeedback</t>
</cf>
<wf xlink:label="L487" xp:origlabel="L487" xp:description="" xp:name="Wrong" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L488" xp:origlabel="L488" xp:description="Text" xp:name="Text">Wrong selection feedback text for column FailFeedback</t>
</wf>
<vf xlink:label="L489" xp:origlabel="L489" xp:description="" xp:name="View" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L490" xp:origlabel="L490" xp:description="Text" xp:name="Text">View solution feedback text for column MasteryFeedback</t>
</vf>
</f>
</mc>
</tm>
<tm xlink:label="L452" xp:origlabel="L452" xp:templateversion="2.1" href="index_452.html" xp:description="Text Drag Drop" Version="2.1.085.1" complexity="1" PageTemplate="yes" ItemTemplate="yes" ShowMenu="Yes" mandatory="Yes" Layout="2V" hSize="50" wSize="30" XUACompatible="IE=10" enableiframe="No" Delay="1" Effect="Fade" xp:name="TextMedia" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L453" xp:origlabel="L453" complexity="1" H xp:description="Text" xp:name="Text">Text for Question column: this TDD includes 2 categories and 4 drags (2 for each category)</t>
<dd xlink:label="L454" xp:origlabel="L454" xp:templateversion="2.1" href="dd_454.html" xp:description="" Version="2.1.085.1" complexity="1" ItemTemplate="yes" IntType="L" weight="1" showFbIcon="YES" FeedbackPresentation="PopUp" layout="Vertical" tSize="70" tWidth="200" tHeight="60" dWidth="200" dHeight="40" tMargin="5" dMargin="5" AllowedAttempts="1" xp:name="DD" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<i xp:fieldtype="text" xlink:label="L455" xp:origlabel="L455" xp:description="Text" xp:name="Instruction">Text for Hint column - TDD</i>
<is xlink:label="L456" xp:origlabel="L456" xp:description="" xp:name="Items" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<i xlink:label="L458" xp:origlabel="L458" xp:description="" xp:name="Item" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xlink:label="L460" xp:origlabel="L460" xp:description="" xp:name="Target" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<st xp:fieldtype="text" xlink:label="L462" xp:origlabel="L462" xp:description="Text" xp:name="Text">Category 1 (for column Categories in a comma-separated list)</st>
</t>
<d xlink:label="L461" xp:origlabel="L461" xp:description="" xp:name="Drag" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<st xp:fieldtype="text" xlink:label="L463" xp:origlabel="L463" xp:description="Text" xp:name="ShortText">Drag 1.1 (for Answer_1 column with AnswerCorrect_1 = 0)</st>
</d>
<d xlink:label="L491" xp:origlabel="L491" xp:description="" xp:name="Drag" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<st xp:fieldtype="text" xlink:label="L492" xp:origlabel="L492" xp:description="Text" xp:name="ShortText">Drag 1.2 (for Answer_2 column with AnswerCorrect_2 = 0)</st>
</d>
</i>
<i xlink:label="L459" xp:origlabel="L459" xp:description="" xp:name="Item" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xlink:label="L464" xp:origlabel="L464" xp:description="" xp:name="Target" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<st xp:fieldtype="text" xlink:label="L466" xp:origlabel="L466" xp:description="Text" xp:name="Text">Category 2 (for column Categories in a comma-separated list)</st>
</t>
<d xlink:label="L465" xp:origlabel="L465" xp:description="" xp:name="Drag" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<st xp:fieldtype="text" xlink:label="L493" xp:origlabel="L493" xp:description="Text" xp:name="ShortText">Drag 2.1 (for Answer_3 column with AnswerCorrect_3 = 1)</st>
</d>
<d xlink:label="L494" xp:origlabel="L494" xp:description="" xp:name="Drag" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<st xp:fieldtype="text" xlink:label="L495" xp:origlabel="L495" xp:description="Text" xp:name="ShortText">Drag 2.2 (for Answer_4 column with AnswerCorrect_4 = 1)</st>
</d>
</i>
</is>
<f xlink:label="L457" xp:origlabel="L457" xp:description="" complexity="3" xp:name="Feedbacks" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<cf xlink:label="L468" xp:origlabel="L468" xp:description="" xp:name="Correct" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L471" xp:origlabel="L471" xp:description="Text" xp:name="Text">Correct selection feedback text for column PassFeedback</t>
</cf>
<wf xlink:label="L469" xp:origlabel="L469" xp:description="" xp:name="Wrong" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L472" xp:origlabel="L472" xp:description="Text" xp:name="Text">Wrong selection feedback text for column FailFeedback</t>
</wf>
<vf xlink:label="L470" xp:origlabel="L470" xp:description="" xp:name="View" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L473" xp:origlabel="L473" xp:description="Text" xp:name="Text">View solution feedback text for column MasteryFeedback</t>
</vf>
</f>
</dd>
</tm>
<trp xlink:label="L401" xp:origlabel="L401" xp:templateversion="2.1" href="rTest_401.html" xp:description="" Version="2.1.085.1" complexity="1" xp:name="ReportTest" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<t xp:fieldtype="text" xlink:label="L407" xp:origlabel="L407" complexity="1" xp:description="Text" xp:name="Text">Insert here your text.</t>
<sc xp:fieldtype="text" xlink:label="L408" xp:origlabel="L408" complexity="1" ShowAs="%" xp:description="Text" xp:name="Score">Score: </sc>
<ts xp:fieldtype="text" xlink:label="L409" xp:origlabel="L409" complexity="1" ShowAs="%" xp:description="Text" xp:name="TotalScore">Total score: </ts>
<th xp:fieldtype="text" xlink:label="L410" xp:origlabel="L410" complexity="1" ShowAs="%" xp:description="Text" xp:name="Threshold">Threshold: </th>
<tq xp:fieldtype="text" xlink:label="L411" xp:origlabel="L411" complexity="1" xp:description="Text" xp:name="Total">Total question: </tq>
<ca xp:fieldtype="text" xlink:label="L412" xp:origlabel="L412" complexity="1" ShowAs="X" xp:description="Text" xp:name="Correct">Correct answers: </ca>
<wa xp:fieldtype="text" xlink:label="L413" xp:origlabel="L413" complexity="1" ShowAs="X" xp:description="Text" xp:name="Wrong">Wrong answer: </wa>
<ct xlink:label="L414" xp:origlabel="L414" xp:description="" xp:name="ConditionalText" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
<tho xp:fieldtype="text" xlink:label="L416" xp:origlabel="L416" complexity="1" xp:description="Text" xp:name="OverThreshold">Test passed!</tho>
<thu xp:fieldtype="text" xlink:label="L417" xp:origlabel="L417" complexity="1" xp:description="Text" xp:name="UnderThreshold">Test failed...</thu>
</ct>
<ql xp:fieldtype="text" xlink:label="L415" xp:origlabel="L415" complexity="1" ShowOn="Right" xp:description="Text" xp:name="QuestionList">Question list:</ql>
</trp>
<tct xlink:label="L402" xp:origlabel="L402" xp:description="" TCB="Close" YesButton="OK" NoButton="Cancel" xp:name="ClosingMessage" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
</tct>
<rm xlink:label="L403" xp:origlabel="L403" xp:description="" TRB="Retry" YesButton="OK" NoButton="Cancel" xp:name="RetryMessage" xp:deliverypath="C:/Users/s.minaglia/Documents/My eXact Projects/MyProject/SCORM" xp:lofolder="376">
</rm>
</test>


Answers (1)