DTD vs XSD

tutorial and example
tutorial and example

Difference between DTD and XSD

Followings are the difference between DTD () and XSD ().

DTD XSD
It stands for Document type Definition It stands for XML Schema Definition
It is derived from SGML syntax It is written in XML
It does not support data types It supports data types for elements and attributes.
It does not support namespace. It supports namespace
It does not define order for child elements It define order for child elements
It is not extensible. It is not extensible.
It is not simple to learn. It is simple to learn because there is no need to learn new language.
It provide less control on XML structure. It provide less control on XML structure.