   TinyXML Multiple choice program
  Hi, i was wondering how one would approach making a program that reads multiple choice questions from an xml and then outputs to screen.  after which the user would input a number between 1-4 and the program determines the correct answer.This is what i have so far but with my little experience in xml i cannot figure out what to do next.i dont noe how to add the scrollable box within a post so this was the best i could do.  Also my code breaks when after it cout << Question:#include <iostream>#include <stdio.h>#include "tinyxml.h"using namespace std;int main(){TiXmlDocument XMLdoc("demo2.xml");bool loadOkay = XMLdoc.LoadFile();if (loadOkay){TiXmlElement *pRoot, *pParm, *pProcess, *pApp, *pLineFormat;pRoot = XMLdoc.FirstChildElement( "quiz" ); if ( pRoot ){// Parse parameterspParm = pRoot->FirstChildElement("question");while ( pParm ){cout << "Question: " << pParm-> Attribute("question") << endl;pParm = pParm->NextSiblingElement( "question" );}cout << endl;} }else{cout << "File cannot be loaded." << endl;}}Here is the XML i have written so far:<?xml version="1.0" encoding="ISO-8859-1"?> <quiz><question><index> 1 </index><purpose> What do frogs eat? </purpose><answer1 correct = "false"> Frogs </answer1><answer2 correct = "true"> Insects </answer2></question></quiz>   
  [ source ] [ /source ] tags will help with the code posting.