Difficulty: Easy
Correct Answer: Incorrect: XML and databases use different terms and concepts
Explanation:
Introduction / Context:
XML is a hierarchical markup language, while relational databases use tabular models. Although data can be mapped between the two, their terminology and core abstractions differ. This question tests awareness of that distinction.
Given Data / Assumptions:
Concept / Approach:
XML uses terms like element, attribute, text node, parent/child, document order. Databases use table, row/tuple, column/attribute (in the relational sense), primary key, foreign key. Some terms overlap semantically (“attribute”), but meanings differ: an XML attribute is metadata attached to an element, not a column in a table. Therefore, XML does not adopt database terms with identical semantics.
Step-by-Step Solution:
Verification / Alternative check:
When mapping XML to tables, engineers often design schemas, shredding rules, or use XML types; the need for mapping itself shows the models and terms are distinct.
Why Other Options Are Wrong:
Common Pitfalls:
Equating an XML attribute with a database column or assuming element order has no meaning (order matters in XML, not in relational tables).
Final Answer:
Incorrect: XML and databases use different terms and concepts
Discussion & Comments