O'Reilly logo

Special Edition Using XML, Second Edition by - et al. David Gulbransen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

XML Schemas Are a Type of Schema

XML Schemas offer an alternative to describing an XML grammar using DTDs. They do not “replace” DTDs, nor do XML Schemas necessarily make DTDs obsolete. DTDs are simple, and they are established technology. There are times when in the interest of expedience and compatibility, it would make sense to use a DTD.

Both tools are useful for describing XML documents. If backward compatibility is an issue, DTDs might be a wiser choice. But if you need some of the features XML Schemas offer, such as datatypes, then the choice will be made for you. It's simply a question of using the right tool for the job.

From the XML Schema Requirements Note published by the W3C, the goals of the XML Schema Recommendation state that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required