The definitions in an XML document are said to be __________ when the tagging system ans definitions in the DTD are all in compliance.
Tripura Public Service Commission - 2025,
Answer: C
The document is said to be valid.
An XML document is valid when it conforms to its Document Type Definition (or schema): its elements and attributes are those the DTD declares, in the permitted structure.
A well-formed document merely follows XML's syntax rules (properly nested tags, a single root, quoted attributes) whether or not it matches a DTD. 'Reasonable' and 'logical' are not XML terms.
Please log in or register to report this question.