Of DTDs, Namespaces, and Schemas for XML

Of DTDs, Namespaces, and Schemas for XML

Of DTDs, Namespaces, and Schemas for XML
By Ed Tittel

XML Schemas represent the final element of this unholy trinity. Schemas (or should that be Schemata?) allow XML developers to (a) permit XML documents to be defined using standard XML notation (rather than SGML as with DTDs, or relying on other definitions elsewhere, as with namespaces) and (b) provide a way to combine DTDs, namespaces, and external schemas within document definitions for which the developers plan to enable mechanical validation. Presto! The best of all three worlds.

Of course, XML Schemas are still under development and their final form and capabilities are still in flux. The W3C published working drafts that described Schema structures and data types in May of 1999, and has been working feverishly to deliver a new set of drafts ever since. Suffice it to say that schemas are controversial, complex, and more than just a little bit interesting. But the jury's still out on where this initiative is headed and exactly what it's going to do for the XML developer community.

My favorite resources on XML Schemas include:

  • Norman Walsh, another member of the SGML/XML pantheon, wrote a wonderful paper for XML.com called "Schemas for XML," that not only covers the territory, but also gives great pointers to other important resources on the topic. For once, I could get away with a single reference on the subject. (http://www.xml.com/pub/1999/07/schemas/index.html);

    Requires Free Membership to View

    When you register, you'll begin receiving targeted emails from my team of award-winning writers. Our goal is to keep you informed on recent service-oriented architecture (SOA) and SOA-related topics such as integration, governance, Web services, Cloud and more.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSOA.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSOA.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

  • For a sense of the controversy and conversation surrounding Schemas, check out Leigh Dodd's paper "Spotlight on Schemas" published in February, 2000. (http://www.xml.com/pub/2000/02/23/xmldeviant/index.html);
  • The W3C's "XML Schema Part 0: Primer" is probably the best description of what XML schemas are and how to build them according to the thinking that prevailed at the time the document was written (April, 2000). Worth reading, even if it may not be realized as written here. (http://www.w3.org/TR/xmlschema-0/).

Where schemas are concerned, all I can say is "Stay tuned for further details!" But while the jury's still out on this topic, the tools and techniques for defining XML documents are improving all the time. Acquaint yourselves with these topics, and get to work!

Ed Tittel is a principal at LANWrights, Inc.: a wholly owned subsidiary of LeapIt.com. LANwrights offers training, writing and consulting services on Internet, networking, and Web topics, plus various IT certifications (Microsoft, Sun/Java, Prosoft/CIW).


This was first published in November 2000

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.