Since Block, Quote & Co. is leaning toward Advanced, the third option, they also want you to explore the other direction. For each of the following pieces of data, if it represents XML according to option 3, turn it into valid XML; otherwise explain why it is not a legal representation:
-
'(table ((width "90%") (background "grey.jpg")) (tr () (td () "hello world")))
Solution:
;; [PTS 1] <table width="90%" background="grey.jpg"> <tr> <td>hello world</td> </tr> </table>
-
'(blockquote ((background "10.xml")) (p "hello world"))
Solution:
;; [PTS 1] ;; It's illegal due to a missing () in p.