Which statement is true?
-
All XML documents must have a DTD
-
All XML elements must be lower case
-
All XML elements must be properly closed
-
All the statements are true
XML requires all elements to be properly closed with matching end tags (or self-closed for empty elements). This well-formedness rule is mandatory for valid XML. DTDs are optional, and XML is case-sensitive but doesn't mandate lowercase.
Well-formed XML requires every element to be properly closed, either with a matching closing tag or as a self-closing tag, since XML parsers reject documents with unclosed elements. A DTD is optional, not mandatory, and XML element names are case-sensitive but not required to be lowercase, so those two claims are false, ruling out "all statements are true."