What is difference between xsd and dtd?

Answer Posted / g.h

DTD stands for "Document Type Definition". In the context of
XML, it serves as an exact specification of what may appear
in an instance document. A DTD consists of a number of
declarations that appear directly in a document or are
referenced as external resources.

XSD is the file type of W3C XML Schemas, standing for "XML
Schema Definition". Contrary to DTDs, XML Schemas are built
up as XML documents themselves, using XML to describe
itself. A schema is external to an XML document. It can be
referenced in the document for automatically retrieving the
schema for validation.

Both DTD and W3C XML Schema are XML schema languages, but
W3C XML Schema is a lot more flexible and has namespace
support, which is still lacking in the current version of
the DTD standard. Another advantage of XSD is the use of
data types.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is html xml subset?

526


How do I save as an xml file?

561


What is dom? What is it used for?

532


How do I subscribe to rss feeds?

506


What is minoccurs 0 in xsd?

544






How do I open an xml file in internet explorer?

547


Why is web xml used?

540


Define xpath? And what is xslt?

531


How do I create an xml tax return?

539


What is meant by xsl formatting?

520


Is there an xml version of html?

571


Explain how to retrieve value of an attribute for an element using XSLT?

555


what is the role of the doctype declaration in reference to xml?

545


What is the function of qualified names?

563


Write the steps involved in the creation of a custom schema.

543