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

How often does rss feed update?

464


What is difference between xml and xsl?

441


What is provided by the elements that don’t recognize the namespace uri?

461


What is the difference between podcast and blog?

445


How do I make an xml file readable?

493






Does youtube have an rss feed?

480


What is targetnamespace?

456


Whether root element is required for XML? If so, how many root elements are required?

600


Where can I find my rss feed on wordpress?

436


Is xml is a programming language?

482


What is xml declaration tag?

447


What is the role of xsl transformer?

518


What is pom xml?

421


How was xml created?

461


What happens when firefox knows a web page has atom feeds?

470