Difficulty: Easy
Correct Answer: DTD
Explanation:
Introduction / Context:
XML relies on separate schema or DTD artifacts to define valid document structure. This question asks you to identify the component responsible for that structural definition.
Given Data / Assumptions:
Concept / Approach:
A DTD (Document Type Definition) declares the allowable building blocks of an XML document. The DOCTYPE declaration in an XML file references or embeds a DTD, but the DTD itself is the structure definition.
Step-by-Step Solution:
Verification / Alternative check:
Looking at a DTD file shows ELEMENT and ATTLIST declarations that define permissible structure.
Why Other Options Are Wrong:
Common Pitfalls:
Using “DOCTYPE” and “DTD” interchangeably; DOCTYPE is the declaration, DTD is the schema-like definition.
Final Answer:
DTD
Discussion & Comments