Which of the following statements are true with reference to the way of…

2015

Which of the following statements are true with reference to the way of describing XML data?

(a) XML uses DTD to describe the data

(b) XML uses XSL to describe the data

(c) XML uses a description node to describe the data

Codes :

  1. A.

    (a) only

  2. B.

    (b) only

  3. C.

    (a) and (b)

  4. D.

    (a) and (c)

Attempted by 141 students.

Show answer & explanation

Correct answer: D

Correct statements:

  • XML uses DTD to describe the data. DTD (Document Type Definition) defines the allowed elements, their relationships, and attributes, so it describes the structure and validity rules for XML documents.

  • XML uses elements (description nodes) to represent and describe data. XML data is structured using tags/elements (often referred to as nodes), which carry the actual descriptive content and semantics in the document.

Why the XSL statement is not correct:

  • XSL (including XSLT and XSL-FO) is intended for transforming and formatting XML, such as converting XML to HTML or another XML structure, and for styling—it is not a schema language for describing the permitted structure of XML documents.

  • If you need a schema language to describe XML structure, use DTD or XML Schema (XSD), not XSL.

Final conclusion: The statements that say XML uses DTD to describe data and that XML uses elements (description nodes) to describe data are correct. Therefore the choice that combines those two statements is the right answer.

Explore the full course: Tpsc Assistant Technical Officer