Ankit  Shukla

Ankit Shukla

  • NA
  • 681
  • 117k

Fetch data from XML

Nov 4 2015 5:14 AM
Hello;
 
        I am working on a website like 'IBPS ONLINE EXAM' in MVC framework. I have question Paper in XML File like this:-
 
<?xml version="1.0" encoding="UTF-8"?><QUIZ>
<MAXNOOPTSEC>0</MAXNOOPTSEC>
<mcQName> </mcQName>
<msQName> </msQName>
<compQName> </compQName>
<saQName> </saQName>
<laQName> </laQName>
<subjQName> </subjQName>
<SHOWMARKS>YES</SHOWMARKS>
<SECTIONDETAILS>
<SECTION ISOPTIONAL="N">
<secName>General Awareness</secName>
<LANGID>1</LANGID>
<LANGNAME>English</LANGNAME>
<secID>1</secID>
<QUESTION TYPE="MCQ">
<NAME><![CDATA[Mr. Donald Rumsfeld was the _____ ]]></NAME>
<ID>1</ID>
<ALLOTTEDMARKS>1</ALLOTTEDMARKS>
<NEGATIVEMARKS>0</NEGATIVEMARKS>
<ANSWER CORRECT="TRUE" VALUE="1"><![CDATA[Foreign Minister of Britain]]></ANSWER>
<ANSWER CORRECT="FALSE" VALUE="2"><![CDATA[Foreign Secretary of U.S.A.]]></ANSWER>
<ANSWER CORRECT="FALSE" VALUE="3"><![CDATA[Foreign Minister of France]]></ANSWER>
<ANSWER CORRECT="FALSE" VALUE="4"><![CDATA[Deputy Prime Minister of France ]]></ANSWER>
<ANSWER CORRECT="FALSE" VALUE="5"><![CDATA[None of these]]></ANSWER>
</QUESTION>
<QUESTION TYPE="MCQ">
<NAME><![CDATA[The Government of India had set a goal to provide safe drinking water to all in rural areas by the year _____ ]]></NAME>
<ID>2</ID>
<ALLOTTEDMARKS>1</ALLOTTEDMARKS>
<NEGATIVEMARKS>0</NEGATIVEMARKS>
<ANSWER CORRECT="FALSE" VALUE="1"><![CDATA[2003]]></ANSWER>
<ANSWER CORRECT="TRUE" VALUE="2"><![CDATA[2005]]></ANSWER>
<ANSWER CORRECT="FALSE" VALUE="3"><![CDATA[2010]]></ANSWER>
<ANSWER CORRECT="FALSE" VALUE="4"><![CDATA[2004]]></ANSWER>
<ANSWER CORRECT="FALSE" VALUE="5"><![CDATA[2006]]></ANSWER>
</QUESTION>
<QUESTION TYPE="MCQ">
<NAME><![CDATA[In the election of the President of India the members of which of the following cast their votes ?]]></NAME>
<ID>3</ID>
<ALLOTTEDMARKS>1</ALLOTTEDMARKS>
<NEGATIVEMARKS>0</NEGATIVEMARKS>
<ANSWER CORRECT="FALSE" VALUE="1"><![CDATA[Members of the Lok Sabha only]]></ANSWER>
<ANSWER CORRECT="FALSE" VALUE="2"><![CDATA[Members of the Rajya Sabha only]]></ANSWER>
<ANSWER CORRECT="TRUE" VALUE="3"><![CDATA[Members of the State Assembalies only]]></ANSWER>
<ANSWER CORRECT="FALSE" VALUE="4"><![CDATA[Members of the both the houses and also of State Assembalies]]></ANSWER>
<ANSWER CORRECT="FALSE" VALUE="5"><![CDATA[None of these]]></ANSWER>
</QUESTION>
</SECTION>
</SECTIONDETAILS>
</QUIZ>
 
 
When candidates complete their exam and submit. How can I calculate No. of right and wrong answers?
                      Thanks in Advance. 
 

Answers (1)