--%>

Benefits of XML schema over DTD

Write the benefits of XML schema over the DTD.

E

Expert

Verified

Microsoft developed the language termed as XML Schema Definition (XSD) which describes the schema to the XML document. The benefits of XML schemas over DTDs are as follows:

• XSD is quite simple to learn and to understand as its syntax is similar to that of XML document.

• DTD does not permit to create customized data types whereas XSD offers full support to create modified data types.

• XSD permits us to state restrictions on the data. This means that we can describe the type of data which must be stored in the element, like numbers or alphabets.

• XSD keeps much better control over types of data than the DTD.

   Related Questions in Computer Engineering