Multiple choice general knowledge science & technology

Is it easier to process XML than HTML?

  1. Yes

  2. No

  3. Sometimes

  4. Can't say

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

The claimed answer A (Yes) is correct. XML has strict, consistent rules (all tags must be closed, properly nested, case-sensitive), making it more predictable and easier for parsers to process than HTML, which has many exceptions and inconsistent tag-handling rules. Options B, C, and D are incorrect.

AI explanation

XML is generally easier to process programmatically than HTML because XML enforces strict, well-formed syntax (every tag must be properly closed and nested), whereas HTML historically tolerates sloppy, unclosed, or improperly nested tags that parsers must guess how to handle. This strictness makes XML more predictable for machines to parse and validate.