TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ankit Shukla
NA
681
116.4k
add a node inside a particular node in xml
Nov 7 2015 5:31 AM
Hello;
I have a xml file like this:
<QUIZ>
<SECTIONDETAILS>
<SECTION ISOPTIONAL="N">
<SECNAME>General Awareness</SECNAME>
<QUESTION TYPE="MCQ">
<NAME><![CDATA[FUll Form OF SBI]]></NAME>
<ANSWER CORRECT="FALSE" VALUE="1"><![CDATA[Sikkim Bank Of India]]></ANSWER>
<ANSWER CORRECT="TRUE" VALUE="2"><![CDATA[State Bank Of India]]></ANSWER>
</QUESTION>
</SECTION>
</SECTIONDETAILS>
</QUIZ>
I need to add some more questions in xml file using c# code. So that output should like this-
<QUIZ>
<SECTIONDETAILS>
<SECTION ISOPTIONAL="N">
<SECNAME>General Awareness</SECNAME>
<QUESTION TYPE="MCQ">
<NAME><![CDATA[FUll Form OF SBI]]></NAME>
<ANSWER CORRECT="FALSE" VALUE="1"><![CDATA[Sikkim Bank Of India]]></ANSWER>
<ANSWER CORRECT="TRUE" VALUE="2"><![CDATA[State Bank Of India]]></ANSWER>
</QUESTION>
<QUESTION TYPE="MCQ">
<NAME><![CDATA[FUll Form OF SBI]]></NAME>
<ANSWER CORRECT="FALSE" VALUE="1"><![CDATA[Sikkim Bank Of India]]></ANSWER>
<ANSWER CORRECT="TRUE" VALUE="2"><![CDATA[State Bank Of India]]></ANSWER>
</QUESTION>
</SECTION>
</SECTIONDETAILS>
</QUIZ>
But My Output is like this-
<QUIZ>
<SECTIONDETAILS>
<SECTION ISOPTIONAL="N">
<SECNAME>General Awareness</SECNAME>
<QUESTION TYPE="MCQ">
<NAME><![CDATA[FUll Form OF SBI]]></NAME>
<ANSWER CORRECT="FALSE" VALUE="1"><![CDATA[Sikkim Bank Of India]]></ANSWER>
<ANSWER CORRECT="TRUE" VALUE="2"><![CDATA[State Bank Of India]]></ANSWER>
</QUESTION>
</SECTION>
</SECTIONDETAILS>
<SECTIONDETAILS>
<SECTION ISOPTIONAL="N">
<SECNAME>General Awareness</SECNAME>
<QUESTION TYPE="MCQ">
<NAME><![CDATA[FUll Form OF SBI]]></NAME>
<ANSWER CORRECT="FALSE" VALUE="1"><![CDATA[Sikkim Bank Of India]]></ANSWER>
<ANSWER CORRECT="TRUE" VALUE="2"><![CDATA[State Bank Of India]]></ANSWER>
</QUESTION>
</SECTION>
</SECTIONDETAILS>
</QUIZ>
Please help its really urgent.. Thanks
Reply
Answers (
2
)
window for Form Auto Resize in desktop laptop and minilapop
how to link the one page to another page by using c#, asp.ne