An XML document that adheres to syntax rules specified by XML 1.0…
2017
An XML document that adheres to syntax rules specified by XML 1.0 specification in that it must satisfy both physical and logical structured, is called :
- A.
Well - formed
- B.
Reasonable
- C.
Valid
- D.
Sophisticated
Attempted by 190 students.
Show answer & explanation
Correct answer: A
Answer: Well-formed
Explanation: A well-formed XML document adheres to the syntax rules specified by the XML 1.0 specification. This refers to syntactic correctness rather than conformance to an external grammar.
Single root element: the document must have exactly one top-level element.
Matching tags and proper nesting: every start tag must have a matching end tag and elements must be properly nested (no overlapping).
Case sensitivity: element and attribute names are case-sensitive.
Attributes: attribute values must be quoted.
Special characters: reserved characters must be escaped or enclosed in CDATA sections.
Note on 'valid': A valid XML document is well-formed and additionally conforms to a DTD or XML Schema. Because the question asks about adherence to XML 1.0 syntax rules (syntactic structure), the correct term is 'well-formed'.