MDL-38880 Imported Cloze questions lose embedded images or other media
[moodle.git] / question / format / xml / tests / fixtures / sample_questions_with_old_image_tag.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <quiz>
5 <!-- question: 0  -->
6   <question type="category">
7     <category>
8         <text>$course$/Default for Test images in backup</text>
10     </category>
11   </question>
15 <!-- question: 5  -->
16   <question type="cloze">
17     <name><text>cloze question with image</text>
18 </name>
19     <questiontext>
20 <text><![CDATA[This is a multianswer question with an image in the old &quot;image&quot; field that was used in moodle 1.9.<br />Match the following cities with the correct state:<br />* San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}<br />* Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}<br />* Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}<br />* Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}<br />The capital of France is {1:SHORTANSWER:%100%Paris#Congratulations!<br />~%50%Marseille#No, that is the second largest city in France (after<br />Paris).~*#Wrong answer. The capital of France is Paris, of course.}.<br />]]></text>
21     </questiontext>
22 <image>moodle.png</image>
23     <image_base64>
24 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAHzSURBVDhPxZFbSJNhGIDXERsVGbKawWJaoyAYGeqNYgdl6zenrhhUlB0I6iJEbUl0WF1UUK2DYhDkGghu7Z+HraisPLAsu+0ygi66kCioqwg2t6f///YhzAVBXfTc/HzP9/J8L/wG/pG8QDw+TE+Xn/O+dva07MW5vZayys3yNp/ZwPPRBPuOHqGisordDc00Ki42bqhAjQ3Jid8jAvoL9vIt4qs463G73VRtrcFiseDvuSYG+TwB7y/zfdzHpzeDWachAjeuXyWkPqZ21zZ2Nrioa/JQarOjlK8jes7Eh/s18GwHRMxkgka+3lvEi1ubcgM63Zea6W5v5ESLB4fDwRVvNam+eRBey3TAxqObNl76rXwLFvAlsIyhC2W5gZ+JJmYixQS9q8RZZzpghwEr/R2LpYGPIYWZqJnYSWNugCkPPDDx1JddTyeZqCetasMdS6WB9OQB7Xet5kmbITeQntoP/YWEfSZxFoy5SA2YCXeukAJ+vD5MMl7Cw9YF2UAkGhIXmYSbZLgI9WKxOOukx52kVAvq6eXS6HOHyAyuRz0lN5hlwg19hcTOWqXQ0FxaXZPnGC4V7s+BsToRUM8YpdA2eHswG/DO2eDV7WpGWg30dpZIA5Nddkba5nP3+Epp4F2vwqh3CXeOLZyzwV/wvwPwC58bSNEdAkhaAAAAAElFTkSuQmCC
26     </image_base64>
27     <generalfeedback>
28 <text></text>
29     </generalfeedback>
30     <shuffleanswers>0</shuffleanswers>
31 </question>
35 <!-- question: 4  -->
36   <question type="multichoice">
37     <name><text>mcq with image</text>
38 </name>
39     <questiontext format="html">
40 <text><![CDATA[This is a multichoice question with an image in the old &quot;image&quot; field that was used in Moodle 1.9]]></text>
41     </questiontext>
42     <image>moodle.png</image>
43     <image_base64>
44 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAHzSURBVDhPxZFbSJNhGIDXERsVGbKawWJaoyAYGeqNYgdl6zenrhhUlB0I6iJEbUl0WF1UUK2DYhDkGghu7Z+HraisPLAsu+0ygi66kCioqwg2t6f///YhzAVBXfTc/HzP9/J8L/wG/pG8QDw+TE+Xn/O+dva07MW5vZayys3yNp/ZwPPRBPuOHqGisordDc00Ki42bqhAjQ3Jid8jAvoL9vIt4qs463G73VRtrcFiseDvuSYG+TwB7y/zfdzHpzeDWachAjeuXyWkPqZ21zZ2Nrioa/JQarOjlK8jes7Eh/s18GwHRMxkgka+3lvEi1ubcgM63Zea6W5v5ESLB4fDwRVvNam+eRBey3TAxqObNl76rXwLFvAlsIyhC2W5gZ+JJmYixQS9q8RZZzpghwEr/R2LpYGPIYWZqJnYSWNugCkPPDDx1JddTyeZqCetasMdS6WB9OQB7Xet5kmbITeQntoP/YWEfSZxFoy5SA2YCXeukAJ+vD5MMl7Cw9YF2UAkGhIXmYSbZLgI9WKxOOukx52kVAvq6eXS6HOHyAyuRz0lN5hlwg19hcTOWqXQ0FxaXZPnGC4V7s+BsToRUM8YpdA2eHswG/DO2eDV7WpGWg30dpZIA5Nddkba5nP3+Epp4F2vwqh3CXeOLZyzwV/wvwPwC58bSNEdAkhaAAAAAElFTkSuQmCC
46     </image_base64>
47     <generalfeedback>
48 <text></text>
49     </generalfeedback>
50     <defaultgrade>1</defaultgrade>
51     <penalty>0.1</penalty>
52     <hidden>0</hidden>
53     <shuffleanswers>1</shuffleanswers>
54     <single>true</single>
55     <shuffleanswers>true</shuffleanswers>
56     <correctfeedback>      <text></text>
57 </correctfeedback>
58     <partiallycorrectfeedback>      <text></text>
59 </partiallycorrectfeedback>
60     <incorrectfeedback>      <text></text>
61 </incorrectfeedback>
62     <answernumbering>abc</answernumbering>
63       <answer fraction="0">
64         <text>
65 wrong answer
66         </text>
67       <feedback>
68           <text>
70           </text>
71       </feedback>
72     </answer>
73       <answer fraction="0">
74         <text>
75 another wrong answer
76         </text>
77       <feedback>
78           <text>
80           </text>
81       </feedback>
82     </answer>
83       <answer fraction="100">
84         <text>
85 right answer
86         </text>
87       <feedback>
88           <text>
90           </text>
91       </feedback>
92     </answer>
93 </question>
96 </quiz>