XML: A Primer Errata

Page

Comments

49

The note refers readers to Chapter 5 for more on white space; unfortunately, that content is actually here on the supplement site, not in Chapter 5.

54

For some reason, much of the information from pages 52 and 53 are here, blotting out the Lark output listing. It should read:

C:\lark>jview driver weather.xml

Loading

Testing: Lark V0.90 Copyright (c) 1997 Tim Bray.

All rights reserved; the right to use these class files for any purpose is hereby granted to everyone.

Parsing...

Done.

<WEATHERREPORT> [ 34, 370 ]

.<DATE> [ 51, 71 ]

..T: [ 57+7 ] 7/14/97

.<CITY> [ 73, 97 ]

..T: [ 79+11 ] NORTH PLACE

.T: [ 97+2 ] ,

.<STATE> [ 99, 116 ]

..T: [ 106+2 ] NX

.T: [ 116+1 ]

.<COUNTRY> [ 117, 139 ]

..T: [ 126+3 ] USA

.T: [ 139+12 ]

High Temp:

.<HIGH SCALE="F"> [ 151, 177 ]

..T: [ 167+3 ] 103

.T: [ 177+11 ]

Low Temp:

.<LOW SCALE="F"> [ 188, 211 ]

..T: [ 203+2 ] 70

.T: [ 211+10 ]

Morning:

.<MORNING> [ 221, 259 ]

..T: [ 230+19 ] Partly Cloudy, Hazy

.T: [ 259+12 ]

Afternoon:

.<AFTERNOON> [ 271, 307 ]

..T: [ 282+13 ] Sunny and Hot

.T: [ 307+10 ]

Evening:

.<EVENING> [ 317, 352 ]

..T: [ 326+16 ] Clear and Cooler

71

An old capitalized version of the XML declaration, containing RMD and VERSION information instead of standalone and version information, got past my editing. The declaration should read

<?xml version="1.0" standalone="yes"?>

75

The third sentence of the last paragraph should read:

Using attributes when you need to store data (for example, <STUDENT ...

81

Replace

<!DOCTYPE simple [

with

<!DOCTYPE DOCUMENT [

82

Replace

<!DOCTYPE simple [

with

<!DOCTYPE DOCUMENT [

84

Replace

<!DOCTYPE simple [

with

<!DOCTYPE DOCUMENT [

85

Strike the parenthetical comment in the middle of the page about ampersands. This referred to SGML, not XML. Ampersands do not work in element declarations.

86

In the code sample at the bottom of the page, the XML declaration should read:

<?xml version="1.0" encoding="UTF-8"?>

The V and the E should not have been capitalized.

Also replace

<!DOCTYPE simple [

with

<!DOCTYPE DOCUMENT [

89

Replace

<!DOCTYPE SIMPLE SYSTEM "http://127.0.0.1/simple.dtd"><SIMPLE><DOCUMENT trackNum="1234">
[xml code...]
</DOCUMENT></SIMPLE>

with

<!DOCTYPE DOCUMENT SYSTEM "http://127.0.0.1/simple.dtd"><DOCUMENT trackNum="1234">
[xml code...]
</DOCUMENT>

100

In the code sample in the middle of the page, the XML declaration should read:

<?xml version="1.0" encoding="UTF-8"?>

The E should not have been capitalized.

109

In the code sample in the middle of the page, the XML declaration should read:

<?xml version="1.0" encoding="UTF-8"?>

The E should not have been capitalized. This error repeats later on the page in the parsed version.

118

The two examples of the INGREDIENTS element are broken by a lack of closing tags. In the first, an </INGREDIENTLIST> tag should appear at the end of the second item; in the second, an </INGREDIENTS> tag is needed at the end of the example.

156

The XML declaration at the top of the page is broken. STANDALONE should not be capitalized.

208

In the middle paragraph, Oracle should be capitalized. Better yet, the object-relational databases here should be supplemented with the object databases discussed in chapter 11.