Explain what is DTD?

Abhijeet Sinha
Abhijeet Sinha

Posted On: Feb 22, 2018

 

DTD (Document Type Definition) is a set of markup declarations that defines the structure, elements and the attribute of the XML document. DTD provides a standard for interchanging data using XML. It is also used to verify that the XML data is valid or not. A DTD can be declared inline inside the XML document or it can be declared as an outside reference as well.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    XSD Interview Questions

    What is XSD?

    XSD (XML Schema Definition) is a language definition that defines how to describe the elements in the Extensible Markup Language (XML). This definition is a recommendation of the World Wide Web Consor...

    XSD Interview Questions

    Explain the benifits of using XSD?

    The advantages of using XSD over other schema languages are,XSD is extensible. That is, You can use XSD to derive new elements from the existing elements. XSD doesn’t require intermediate p...

    XSD Interview Questions

    How attribute is different from a element in XSD?

    Element in XSD is nothing but an XML element such as opening tag, content, closing tag, etc. XSD Elements are the building blocks of your XML document. Elements are defined by their occurrence. An ele...