JSON
{ "exam" : [ { "question": "What is the capital of Canada?", "answers": [ { "answer": "Ottawa", "correct": true }, { "answer": "Calgary", "correct": false }, ] } ] }
XML
<exam> <question>What is the capital of Canada?</question> <answers> <answer correct="true">Ottawa</answer> <answer correct="false">Calgary</answer> </answers> </exam>