Home > DeveloperSection > Interviews > What is the difference between an XML schema and a DTD?

Posted on    February-07-2011 12:00 AM

 XML XML 
Ratings:
 1 Answer(s)
  1254  View(s)
Rate this:

Vikas Giri
Vikas Giri

Total Post:33

Points:165
Posted on    February-07-2011 1:00 AM

The XML Schema is the officially sanctioned Schema definition. Unlike DTDs, the format of XML Schemas follows the rules of well-formed XML documents. The Schema also allows for much more granular control over the data that is being described. Because of the XML format and the detailed format controls, Schemas tend to be very complex and often much longer than the XML documents that they are describing. Schemas are often much more easy for developers to read and follow,due to the less cryptic nature of the references in Schemas versus DTDs.

Don't want to miss updates? Please click the below button!

Follow MindStick