Thursday 10 November 2011

Task 2, part 3


1.       13)  Below is some XML.  The last line is missing.  What should it be? Select one response and write the letter
here [ b ]
a.                                        <end>
b.                                        </note>
c.                                        <note>
d.                                        <note/>

 <?xml version="1.0"?>
<note>
    <to>Class</to>
    <from>Ray</from>
    <heading>Reminder</heading>
    <body>Don't forget to complete your Blog!</body>

Justify your answer
In XML, all tags need to be closed


1.       14)  Below is some XML.  What is the missing line? Select one response and write the letter
here [ d ]
a) <Header>
b) <Body>
c) <painting>
d) </caption>

<?xml version="1.0" encoding='UTF-8'?>
<painting>
  <img src="madonna.jpg" alt='Foligno Madonna, by Raphael'/>
  <caption>This is Raphael's "Foligno" Madonna, painted in
  <date>1511</date>-<date>1512</date>
</painting>

Justify your answer
The <caption> tag was opened, but not closed, which is not allowed in XML.