Go to previous pageGo to next page

1.4.5. Unit-Summary

DTD

A Document Type Definition defines the legal building blocks of an XML document with a list of legal elements. A DOCTYPE declaration can be internal or external.

XML Schema

An XML Schema defines the legal building blocks of an XML document, just like a DTD. The possibilities of XML Schemas are richer than the ones of DTDs.

XML Schema versus DTD

In the future, XML Schema might be used as a replacement for DTD's because XML Schemas...:

  • ...are extensible to future additions,
  • ...are richer and more useful than DTDs,
  • ...are written in XML,
  • ...support simple (integer, decimal, string, boolean, dateTime, etc.) and complex data types,
  • ...support namespaces.

Because XML Schemas are written in XML, they possess the same advantages as XML documents.



Go to previous page
Go to next page