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 11.2, we have identified some of the actual information that will be contained in the XML document. Again, note that the data is contained only in the end elements, not the aggregate elements, such as address
and name
.
To enter this information into an XML document, we can use a text editor, as we used for the DTD. However, as we will see later, tools have been created specifically for this ...
Get The Object-Oriented Thought Process, Fourth Edition 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.