Advantages of XML schemas over DTD

Specify advantages of the XML schemas over DTD.

E

Expert

Verified

Microsoft has developed a language which called as XML Schema Definition (XSD) in order to describe the schema to an XML document.

Following are advantages of the XML schemas over DTDs:

a) XSD has much better control over the types of data in place of the DTD.
b) XSD is easier to learn and to understand as its syntax is similar to that of XML document.
c) DTD doesn’t permit for creating the customized data types whereas XSD facilitates the full support for creating the customized data types.
d) XSD permits to specify the restrictions on the data. This means that you can define the type of data which should be stored in an element, such as alphabets or numbers.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.