XML Schema

XML Schema is an initiative from the W3C that attempts to eliminate the problems with DTDs by replacing them with something better. XML Schemas are more flexible than DTDs, more powerful, and more familiar, as they use XML syntax.

As of this writing, the XML Schema has advanced to “Candidate Recommendation” status at W3C, but Xerces version 1.2.3 uses the April 7, 2000 draft, located at

http://www.w3.org/TR/2000/WD-xmlschema-1-20000407/

http://www.w3.org/TR/2000/WD-xmlschema-2-20000407/

and

http://www.w3.org/TR/2000/WD-xmlschema-3-20000407/

To begin converting our DTD to a schema, we'll create a third text file called products.xsd (for XML ...

Get XML and Java™ from scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.