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

What do you understand by svg and smil? Give examples

487


What are xml schemas used for?

472


What is the function of xslt?

510


What is xsl describe its two parts?

498


What is the difference between xml and xls?

473






What is xml document?

472


Write a code for xml attribute and element.

471


What do you mean by xslt element?

465


What is the difference between simple element and complex element?

530


What is the difference between podcast and blog?

453


How you will do SubString in XSL

2413


Is sql worth learning?

486


What is root element in xml ?

506


Explain the working of xslt?

580


Explain about dom interface?

494