August 2003
Intermediate to advanced
624 pages
15h 3m
English
The Schema Recommendation has been approved for two years as this book goes to press. I wouldn't be surprised if you find some applications still using DTDs instead of schemas. Let's take a quick look at DTDs, using the XML representation of our simple CSV address book file (limited to only ten columns for brevity). Here's the instance document with two rows, followed by the DTD.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE SimpleCSV SYSTEM "SimpleCSV1.dtd"> <SimpleCSV> <Row> <Column01>Jones</Column01> <Column02>Mary</Column02> <Column03>312 Renner Road</Column03> <Column04>Apartment C</Column04> <Column05>Richardson</Column05> <Column06>TX</Column06> <Column07>75080</Column07> <Column08>USA</Column08> ... |