Machine-translated by Google. Questions are authored in English.
Top

Discussion

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.

  • A.i-True, ii-True, iii-False
  • B.i-False, ii-True, iii-False
  • C.i-True, ii-False, iii-False
  • D.i-False, ii-False, iii-False

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.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.