1. A method for generating a question document and an answer document from a database of questions, the database of questions and answers contained in an extensible markup language document, wherein the questions and answers are divided into sections, the method comprising: creating a first Document Object Model (DOM) tree from the extensible markup language document, said DOM tree containing nodes for each of the sections and each question and answer in the database; prompting a user to indicate a number for each of the sections, said number representing how many questions from each of the sections should be chosen; randomly selecting a number of nodes from each of the sections in said first DOM tree; making a second DOM tree from said randomly selected nodes; and refining said second DOM tree into a question document and an answer document.