Multiple choice technology web 2.0

The following XML document is "well formed". Sachin Sourav

  1. True

  2. False

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

The XML document is NOT well-formed because attribute values must be enclosed in quotes. The attribute 'age=29' should be written as 'age="29"' or "age='29'". All XML attributes require quoted values, making this document invalid.

AI explanation

The document is NOT well-formed, so False is correct. A core well-formedness rule in XML is that every attribute value must be quoted: age="29" is required, but the document has age=29 with no quotes around 29. An XML parser will throw a syntax error on this attribute. Aside from that, elements are properly nested and closed (..., ... inside a single root), so quoting is the sole but fatal defect. Since 'well-formed' is a strict syntactic requirement (unlike 'valid', which needs a DTD/schema), a single unquoted attribute value is enough to disqualify the whole document.