Multiple choice xml

XML document must be valid?

  1. True

  2. False

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

An XML document is required to be well-formed to be parsed, but it does not strictly have to be valid. Validity requires conformance to an external schema or DTD, whereas well-formedness only requires correct syntactic structure.