Integrating the DTD into the XML Document

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.

Table 12.2. Adding the Values to the Table
 <companyname>The Beta Company
 <street>12000 Ontario St
 <type>Vacuum Cleaner

To enter this information into an XML document, we can use a text editor, just ...

Get Object-Oriented Thought Process, The, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.