Creating Documents  «Prev  Next»

Rules for XML documents - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 
1. What is the minimum requirement for a given document to be called an XML document according to the XML Specification?
Please select the best answer.
  A. It includes an xml declaration element <?xml?>.
  B. It is well-formed.
  C. It guarantees forward compatibility.
  D. It uses all lowercase elements.

2. In what way do XML documents differ from HTML documents when rendered in a browser?
Please select the best answer.
  A. Browsers will infer XML closing tags.
  B. Browsers will still render ill-constructed XML documents.
  C. HTML requires attention and discipline.
  D. Any single error will prevent the XML document from being rendered.

3. Which of the following rules apply to well-formed XML documents?
Please select all the correct answers.
  A. Empty tags need a forward slash (/) character before the closing bracket (>).
  B. All tags must be uppercase.
  C. It is optional to enclose attribute values in quotation marks.
  D. Starting and ending tags must be explicit.
  E. Tags must nest correctly.