O'Reilly logo

Real World XML by Steven Holzner

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 5. Creating XML Schemas

For the past two chapters, we've been working with document type definitions (DTDs). Over time, many people have complained to the World Wide Web Consortium (W3C) about the complexity of DTDs and have asked for something simpler. The W3C listened, assigned a committee to work on the problem, and came up with a solution that is much more complex than DTDs ever were: XML schemas.

On the other hand, schemas are also far more powerful and precise than DTDs ever were. With schemas, you can specify not only the syntax of a document as you would with a DTD, but also the actual data types of each element's content, inherit syntax from other schemas, annotate schemas, use them with multiple namespaces, create simple and ...

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