O'Reilly logo

XML Pocket Consultant by William R. Stanek

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

Chapter 8. XML Schemas

Like document type definitions (DTDs), XML schemas provide a way to describe the structure of XML documents in terms of the elements, attributes, and the data that they can contain. Although you define DTDs using a syntax and structure that’s distinctly different from the XML language itself, an XML schema written in the XML Schema language is defined entirely in the XML language itself. This makes XML schemas much more powerful and flexible than DTDs. It also means that XML schemas can be processed with an XML processor. Schemas have other advantages over DTDs as well, especially when it comes to defining context and specifying the kind of data that can be used.

With XML schemas, elements can have either a global or a local ...

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