Datasheet

Both of these examples look as the screen does in Figure 1-5.
Figure 1-5: Using the XML tag to embed XML data islands into an HTML page
There are always different ways to do things.
Try It Out XML Data Islands
The XML document that follows represents the three regions and six countries created in the Try It Out
exercise presented earlier in this chapter:
<?xml version=”1.0”?>
<regions>
<region>Africa</region>
<country>Zambia</country>
<country>Zimbabwe</country>
<region>Asia</region>
<country>Burma</country>
<region>Australasia</region>
<country>Australia</country>
<region>Caribbean</region>
<country>Bahamas</country>
<country>Barbados</country>
</regions>
Here we will create a simple HTML page, containing the preceding XML document as a data island.
Assume that the XML document is called countries.xml. Don’t worry about a full path name. The exam-
ple shown in Figure 1-5 and its preceding matching XML data island HTML pages give you an example
to base this task on.
Create the HTML page as follows:
1. Use an appropriate editor to create a text file.
9
What Is XML?
04_791202 ch01.qxp 10/6/06 10:59 AM Page 9