ITPEC FE Morning October 2023 Question 10

Which of the following is an appropriate description concerning XML?

Explanation

Users define their own tags for a document's structure and attributes — XML is extensible: it fixes the syntax, not the tag set.

XML (Extensible Markup Language) is a W3C recommendation derived from SGML. An author or application chooses the element and attribute names, so a document can describe its own logical structure, for example <order> containing <item>. What the data looks like on screen is left to separate style sheets (CSS or XSL).

Answer (d)

Why not others:

  • •(a) — XML is a simplified subset of SGML, not an extension of HTML; HTML has a fixed tag set for display
  • •(b) — an XML document is plain text and can be written with any text editor
  • •(c) — XML separates logical structure from presentation rather than combining them; styling is applied through CSS or XSL

Key rule: XML describes what the data is with user-defined tags; how it is displayed is a separate style sheet.

Algorithm and Programming · AI-written, may contain errors

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.