200-901 · Question #348
What is a feature of XML compared to other data formats?
The correct answer is A. It uses tags to define the structure. XML (eXtensible Markup Language) uses opening and closing tags (e.g., <name>value</name>) to define and structure data. This distinguishes it from JSON, which uses curly braces and key-value pairs; YAML, which uses indentation to define hierarchy; and CSV, which uses commas…
Question
What is a feature of XML compared to other data formats?
Options
- AIt uses tags to define the structure.
- BIt uses parenthesis for key-value pairs.
- CIt uses indentation to define the structure.
- DIt uses namespaces for list representation.
How the community answered
(69 responses)- A94% (65)
- B1% (1)
- C3% (2)
- D1% (1)
Explanation
XML (eXtensible Markup Language) uses opening and closing tags (e.g., <name>value</name>) to define and structure data. This distinguishes it from JSON, which uses curly braces and key-value pairs; YAML, which uses indentation to define hierarchy; and CSV, which uses commas. XML tags are user-defined, making the format self-descriptive and highly extensible. The other choices describe features of different formats: parentheses for key-value pairs is not a standard format feature, indentation is characteristic of YAML, and namespaces in XML are used for avoiding element name conflicts, not for list representation.
Topics
Community Discussion
No community discussion yet for this question.