DTD is used to
-
Create a template of the XML hierachy
-
Validate the XML
-
Ensures Well Formed XML’s creation
-
Format the XML
Reveal answer
Fill a bubble to check yourself
A,B,C
Correct answer
Explanation
DTD (Document Type Definition) serves three key purposes in XML: it provides a template defining the valid structure and hierarchy of an XML document (Option A), validates that XML documents conform to that structure (Option B), and by defining the structure, it ensures the creation of well-formed XML documents (Option C). However, DTD is NOT used for formatting or presentation - that's the role of XSLT stylesheets. Therefore, Options A, B, and C are correct, while D is incorrect.