Errata
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
Printed | Page 8 code sample |
<body bgcolor="#ffffff"> |
Anonymous | ||
Printed | Page 8 code sample 1-3 |
code sample: |
Anonymous | ||
Printed | Page 24 Under Processors |
XSL has just become a rec |
Anonymous | Sep 01, 2000 | |
Printed | Page 33-34 code sample |
Every place it says "What's next", the single apostrophe is a right single |
Anonymous | ||
Printed | Page 40 In the second paragraph from the bottom |
"...Business Object not a..." |
Anonymous | Sep 01, 2000 | |
Printed | Page 40 code sample (1st) |
<!-- Standard element with attribute --> |
Anonymous | ||
Printed | Page 48 3rd para |
The URL http://www.megginson.com/SAX/SAX2/javadoc/index.html should be: |
Anonymous | ||
Printed | Page 53 The example of command line has been changed to |
D:prodJavaXML> java SAXParserDemo |
Anonymous | Sep 01, 2000 | |
Printed | Page 53 |
There should be a footnote after code sample's last line that reads: |
Anonymous | ||
Printed | Page 58 In the code sample the first method has been changed to |
* @param ch <code>char[]</code> character array with character data. |
Anonymous | Sep 01, 2000 | |
Printed | Page 67 In the second code sample |
* @param end <code>int</code> index in array where data ends. |
Anonymous | Sep 01, 2000 | |
Printed | Page 67 2nd code sample |
The line: |
Anonymous | ||
Printed | Page 70 In the first code sample |
* @param end <code>int</code> index in array where data ends. |
Anonymous | Sep 01, 2000 | |
Printed | Page 70 top code sample |
String s = new String(ch, start, end); |
Anonymous | ||
Printed | Page 71 The following line has been made bold |
parser.setContentHandler(contentHandler); |
Anonymous | Sep 01, 2000 | |
Printed | Page 71 bottom code sample |
Add the lines: |
Anonymous | ||
Printed | Page 71 right before last code sample |
Change "Add the following lines to the demo() method" to read "Add the |
Anonymous | ||
Printed | Page 72 The example command line has been changed to |
D:prodJavaXML> java SAXParserDemo file:///d:/prod/JavaXML/contents.xml |
Anonymous | Sep 01, 2000 | |
Printed | Page 74 end of 2nd para |
Change "we want to address the issue of what happens when your XML document |
Anonymous | ||
Printed | Page 86 top code sample. |
Change: |
Anonymous | ||
Printed | Page 87 last code sample |
Change: |
Anonymous | ||
Printed | Page 96 last code sample |
Change the DOCTYPE line to read: |
Anonymous | ||
Printed | Page 99 The last code example has been changed to |
<!ENTITY OReillyCopyright |
Anonymous | Sep 01, 2000 | |
Printed | Page 102 The first code example under "Either or" has been changed to |
<!ELEMENT AggregateElement (#PCDATA | Element1 | Element2)*> |
Anonymous | Sep 01, 2000 | |
Printed | Page 103 In the code sample Example 4-9, the middle part has been changed to |
<!ELEMENT JavaXML:Title (#PCDATA)> |
Anonymous | Sep 01, 2000 | |
Printed | Page 103 middle code sample. |
Change: |
Anonymous | ||
Printed | Page 104 In the code/DTD listing |
<!ATTLIST JavaXML:Chapter |
Anonymous | Sep 01, 2000 | |
Printed | Page 105 |
The section line has been removed in both the first and |
Anonymous | Sep 01, 2000 | |
Printed | Page 107 The first sentence has been changed to |
In comparing our example XML document to its DTD... (rest is same) |
Anonymous | Sep 01, 2000 | |
Printed | Page 110 The first code line |
<xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema"> |
Anonymous | Sep 01, 2000 | |
Printed | Page 110 2nd code line |
Should read: |
Anonymous | ||
Printed | Page 118 middle code sample. |
Change near top: |
Anonymous | ||
Printed | Page 130 bottom code sample. |
Change the first two lines to read: |
Anonymous | ||
Printed | Page 143 In the first sentence of the last paragraph |
"For the duration of the this book..." |
Anonymous | Sep 01, 2000 | |
Printed | Page 153 sentence between examples 6-3 and 6-4. Change to |
The result of transforming this data would be the HTML output shown in |
Anonymous | ||
Printed | Page 160 first sentence. Change to |
By now, you're probably jumping at the chance to see how this transformation |
Anonymous | ||
Printed | Page 185 The first line of the code sample has been changed to |
private static void printNode(Node node) { |
Anonymous | Sep 01, 2000 | |
Printed | Page 185 bottom of page, change first line of code to |
public void printNode(Node node) { |
Anonymous | ||
Printed | Page 187 The code sample has been changed to |
case Node.DOCUMENT_NODE: |
Anonymous | Sep 01, 2000 | |
Printed | Page 187 2nd line of code sample should be |
System.out.println("<?xml version="1.0"?> |
Anonymous | ||
Printed | Page 188 The code sample has been changed to |
// recurse on each child |
Anonymous | Sep 01, 2000 | |
Printed | Page 190 Example 7-3: Change line |
<xml version="1.0"> |
Anonymous | ||
Printed | Page 191 code sample, line 5. Change to |
System.out.println("<?xml version="1.0"?> |
Anonymous | ||
Printed | Page 192 Example 7-4. Change line |
<xml version="1.0"> |
Anonymous | ||
Printed | Page 194 The commented code in the code sample has been changed to |
/* |
Anonymous | Sep 01, 2000 | |
Printed | Page 194 In the sixth line of the first paragraph |
PrcoessingInstruction |
Anonymous | Sep 01, 2000 | |
Printed | Page 195 In the third line of the first paragraph |
"...we need to case our Node..." |
Anonymous | Sep 01, 2000 | |
Printed | Page 201 The import statement |
import org.xml.sax.helpers.HandlerBase; |
Anonymous | Sep 01, 2000 | |
Printed | Page 209 The following line has been removed: |
import org.jdom.input.Builder |
Anonymous | Sep 01, 2000 | |
Printed | Page 210 In the code sample, |
Builder builder = new SAXBuilder(false); |
Anonymous | Sep 01, 2000 | |
Printed | Page 211 In the code sample, the following line has been removed |
import org.jdom.input.Builder; |
Anonymous | Sep 01, 2000 | |
Printed | Page 211 |
The last sentence now reads: |
Anonymous | Sep 01, 2000 | |
Printed | Page 217 2nd code sample. Change "window-managers" to "window-manager" |
Anonymous | |||
Printed | Page 220 In the second paragraph under heading "Comments" |
"the getContent() method" |
Anonymous | Sep 01, 2000 | |
Printed | Page 222 In the code example, the following line has been removed |
import org.jdom.input.Builder; |
Anonymous | Sep 01, 2000 | |
Printed | Page 223 In the code sample |
Builder builder = new SAXBuilder(false); |
Anonymous | Sep 01, 2000 | |
Printed | Page 224 In the code sample, the following line has been removed: |
import org.jdom.input.Builder; |
Anonymous | Sep 01, 2000 | |
Printed | Page 225 In the code sample in the bottom of the page: |
Builder builder = new DOMBuilder(true); |
Anonymous | Sep 01, 2000 | |
Printed | Page 229 In the code sample, the following line has been removed |
import org.jdom.input.Builder; |
Anonymous | Sep 01, 2000 | |
Printed | Page 230 In the code sample, |
Builder builder = new SAXBuilder(); |
Anonymous | Sep 01, 2000 | |
Printed | Page 242 The third line |
/usr/lib/jakarta-tomcat/conf/cocoon.properties |
Anonymous | Sep 01, 2000 | |
Printed | Page 247 Example 9-2. |
Line 12, change 'page-master-name="right"' to 'master-name="right"' |
Anonymous | ||
Printed | Page 281 last para. Add footnote to the word IDE in the second sentence that |
reads: |
Anonymous | ||
Printed | Page 296 The eleventh and on lines have been changed to |
private static Vector events = new Vector(); |
Anonymous | Sep 01, 2000 | |
Printed | Page 299 The code has been changed to |
|
Anonymous | Sep 01, 2000 | |
Printed | Page 300 In the second code sample, the public Scheduler section |
has been changed to: |
Anonymous | Sep 01, 2000 | |
Printed | Page 322 bullet last, change last item to |
* Parser class for the client to use as a SAX driver. |
Anonymous | ||
Printed | Page 332 In the code sample, the following line has been removed |
import org.jdom.input.Builder |
Anonymous | Sep 01, 2000 | |
Printed | Page 333 In the code sample |
Builder builder = new DOMBuilder(... |
Anonymous | Sep 01, 2000 | |
Printed | Page 333 code listing |
Change all occurrences of "getContent()" to "getText()" |
Anonymous | ||
Printed | Page 341 In the code sample |
Builder builder = new DOMBuilder(... |
Anonymous | Sep 01, 2000 | |
Printed | Page 343 right after 1st code sample, add this sentence |
You will also need to add several import statements: |
Anonymous | ||
Printed | Page 346 In the code sample |
doc.getElementsByTagNameNS(NAMESPACE_URI, "hostname"); |
Anonymous | Sep 01, 2000 | |
Printed | Page 347 after code listing, add sentence |
You also need to import these classes: |
Anonymous | ||
Printed | Page 351 In the code sample, the following line has been removed |
import org.jdom.input.Builder |
Anonymous | Sep 01, 2000 | |
Printed | Page 354 In the code sample at the bottom of page |
Builder builder = new DOMBuilder(... |
Anonymous | Sep 01, 2000 | |
Printed | Page 362 In the code sample, the following line has been removed: |
import org.jdom.input.Builder |
Anonymous | Sep 01, 2000 | |
Printed | Page 364 In the first code snippet, the following line has been removed |
import org.jdom.input.Builder |
Anonymous | Sep 01, 2000 | |
Printed | Page 365 code sample |
Change all occurrences of setContent() to setText() |
Anonymous | ||
Printed | Page 368 In the code sample, the following line has been removed: |
import org.jdom.input.Builder |
Anonymous | Sep 01, 2000 | |
Printed | Page 383 In the code sample |
<input type="reset" value="Rest Form"... |
Anonymous | Sep 01, 2000 | |
Printed | Page 398 code sample |
Change the code in the catch block to: |
Anonymous | ||
Printed | Page 404 In the code sample, the following line has been removed |
import org.jdom.input.Builder; |
Anonymous | Sep 01, 2000 | |
Printed | Page 406 In the second code snippet |
Builder builder = new SAXBuilder(); |
Anonymous | Sep 01, 2000 | |
Printed | Page 409 In the third line |
"...system and send an email." |
Anonymous | Sep 01, 2000 | |
Printed | Page 423 The code sample |
</simpleType |
Anonymous | Sep 01, 2000 | |
Printed | Page 430 For the Attributes class listing |
public abstract String getRawName (int index); |
Anonymous | Sep 01, 2000 | |
Printed | Page 431 For the ContentHandler interface listing |
public void startElement(String namespaceURI, String localName, |
Anonymous | Sep 01, 2000 | |
Printed | Page 447 The following two method signatures need to be added to the Element |
class's API reference: |
Anonymous |