Java & XML, 2nd Edition by Brett Mclaughlin The following errata were *corrected* in the 7/04 reprint: Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem {12} 2nd xml quote after 2nd paragraph; NOW READS: p. 27, code sample in middle of page. NOW READS: This same change HAS BEEN MADE on p.25, where this same code is within the larger file. (45) code listing public void buildTree(DefaultTreeModel treeModel, DefaultMutableTreeNode base, File file) NOW READS: public void buildTree(DefaultTreeModel treeModel, DefaultMutableTreeNode base, String xmlURI) {57} middle of 1st code block; String attPrefix = (String)namespaceMappings.get(namespaceURI); NOW READS: String attPrefix = (String)namespaceMappings.get(attURI); {60} Third paragraph; The DTD declaration of the mixed content model: NOW READS: {73} second line of code sample System.out.println(i); NOW READS: System.out.println(ch[i]); {109} IN PRINT: Example 5-1, 7th line from bottom of page; System.exit(0); NOW READS: return; {129} Example 6-2. (continue); in the example code: DOMSerializer serializer = new DOMSerializer(); serializer.serializer(doc, new File(ITEMS_DIRECTORY + "item-" + name + ".xml")); NOW READS: DOMSerializer serializer = new DOMSerializer(); serializer.serializer(doc, new File(ITEMS_DIRECTORY + "item-" + id + ".xml")); P. 146, bottom of page: "You could just as easily provide values like Node.SHOW_ELEMENT and Node.SHOW_TEXT..." NOW READS: "You could just as easily provide values like NodeFilter.SHOW_ELEMENT and NodeFilter.SHOW_TEXT..."