Which of the given options best describes the truthfulness of the following statements? i) XML schemas define datatypes for elements and attributes, while DTD doesn't support datatypes. ii) DTD are the declarations that define a document type for SGML. iii) In XML, Tag names can begin with a numeric value.
DSSSB TGT - 2023,
Answer: A
Statements i and ii are true and iii is false. XML schemas define datatypes for elements and attributes while a DTD does not support datatypes, and a DTD is a set of declarations defining a document type, as it began with SGML. In XML a tag name cannot begin with a number, so statement iii, which says it can, is false. The options that mark iii as true, or i or ii as false, are therefore wrong. A document type definition lists the allowed elements and attributes of a document, and an XML schema does the same job with richer features such as datatypes.
Please log in or register to report this question.