Question:

What is the purpose of DTD?

Show Hint

Use DTD to validate XML structure and define legal element rules.
Updated On: June 02, 2025
  • To define the structure and the legal elements and attributes of an XML document
  • To avoid element and attribute name conflicts
  • To access and manipulate XML document
  • To store and query XML data
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

DTD (Document Type Definition) defines the structure and the legal elements and attributes of an XML document.
It ensures that the XML document adheres to a predefined format and structure, enabling validation and consistent data exchange.
It does not deal with accessing or querying data but with defining its grammar.
Was this answer helpful?
0
0

TS PGECET Notification