Multiple choice

The use of XML is to

  1. define the structure with a list of legal elements

  2. to carry data

  3. to display data

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

XML is designed primarily for data transport and storage, not display. It provides a structured, self-describing format for exchanging information between systems. HTML focuses on presentation, while XML focuses on what the data IS, making it ideal for APIs, configuration files, and data interchange.