December 2003
Beginner
288 pages
7h 8m
English
Now that we have created the DTD, it is time to create an actual XML document. Remember that the XML document must conform to the supplier DTD we have just written.
In Table 12.2, we have identified some of the actual information that will be contained in the XML document. Again, note that the data is only contained in the end elements, not the aggregate elements, such as address and name.
| Object | Category | Field | Value |
|---|---|---|---|
| supplier | |||
| name | |||
| <companyname> | The Beta Company | ||
| address | |||
| <street> | 12000 Ontario St | ||
| <city> | Cleveland | ||
| <state> | OH | ||
| <zip> | 24388 | ||
| product | |||
| <type> | Vacuum Cleaner | ||
| <price> | 50.00 | ||
| <count> | 20 |
To enter this information into an XML document, we can use a text editor, just ...
Read now
Unlock full access