HTML and CSS Reference
In-Depth Information
Table 12-20 Code for Completing the Document Instance (continued)
Line
Code
30
<item-id>G321</item-id>
31
<item-description>Tomato Slicer</item-description>
32
<item-boh>5</item-boh>
33
<item-brand>Cooper</item-brand>
34
<item-cost>169.98</item-cost>
35
<item-vendor_ID>5T790</item-vendor_ID>
36
</item>
37
</products>
Lines 13 through 36 repeat elements for each item. The beginning <Item> tag on line 21 has an uppercase I
character intentionally to demonstrate an error when the XML document is displayed in the browser. Line 37 is the
end tag for the root element, </products>.
The following step enters the remainder of the document instance for the XML document,
chapter12-1products.xml.
1
line 13 and indent
as shown in
Figure 12-16.
If necessary, click
code shown in
Table 12-20 with the
error on line 21 to
finish creating the
document instance
and do not press
the e n t e r key
(Figure 12-16).
Enter the XML
enter incorrect item
tag to cause error
remaining product
instance elements
closing root tag
<products>
Figure 12-16
 
Search WWH ::




Custom Search