XML Quiz
Check what you have learned in the XML tutorial. Pick an answer for each question and read the explanation.
How to Use This Quiz
- Answer from memory first, then check
- If you miss one, reread that lesson and try its example
- 7 or more correct out of 9 is a strong score
Quiz Questions
Exercise
1. What does the X in XML stand for?
Exercise
2. Which statement about XML tags is true?
Exercise
3. How do you write the & character inside XML text?
Exercise
4. What is the best place for an ID that identifies an element?
Exercise
5. Why are XML namespaces used?
Exercise
6. What is the difference between well-formed and valid XML?
Exercise
7. Which XML Schema type accepts only whole numbers?
Exercise
8. What does the XPath //product[1] select?
Exercise
9. What does a browser's DOMParser do if the XML is not well-formed?
What Next?
Well done on finishing XML! Look at the sitemap.xml of a website you know, write an XSD for a small file of your own, and practise XPath in your browser's console. Then continue with JavaScript or Python to work with data in real programs.
