The DTD is Document Type Definition which describes the formation of the content of an XML document.
It manages the data to store in a consistent format. It defines the XML elements and attributes about how they should be present in XML documents and what relation they should have with other elements and attributes.
It also allows you to mention whether an XML element is optional or not. If the XML documents are not according to the DTD rules, they are not considered valid.
Asked In: Many Interviews |