Question 1
Topic: Fundamental XML Syntax and Application
Skill tested: Applies XML well-formedness rules to repair document structure and markup.
A logistics company receives XML order documents from several partners. One partner's document contains a single root element, but its address element is written as `Oak Road`. The receiving application rejects the document before schema validation begins. The partner wants the smallest markup change that makes this fragment well-formed while preserving the intended nesting: `street` is inside `address`, and the text is `Oak Road`. Which fragment should the partner send?
XML elements must be properly nested: an element opened inside another element must close before the containing element closes. The fragment in A closes `street` and then `address`, preserving the intended hierarchy. Escaping end tags as in B would make them character data rather than closing markup, and it would not create the intended element structure. C closes `address` twice without closing `street` correctly, while D leaves the outer `address` element unclosed.