Perl & XML by Erik T. Ray, Jason McIntosh 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 (5) 1st code segment, line 10 i-like-cheese@jmac.org NOW READS: joewrigley@jmac.org (6) Paragraph starting with "In the Perl world"; "through the use pragma" NOW READS "through a use directive". (21) Paragraph starting with :Finally"; "�DC;" HAS BEEN CHANGED to "Ü" [23] 1st paragraph; "The answer is: declare the decoding in the XML declaration." NOW READS: "The answer is: declare the encoding in the XML declaration." (24) 1st sentence; Spurious "hackers" HAS BEEN DELETED. {29} 4th paragraph, lines 3,5; max-inclusive NOW READS maxExclusive max-length NOW READS maxLength (32) Step 7 of tranformation list; NOW READS: {44} Example 3-2, print statements on lines 12 and 14; NOW READ: print STDERR "\nERROR in '$xmlfile':\n$@\n"; print STDERR "'$xmlfile' is well-formed\n"; (52) IN PRINT: Second paragraph, last sentence; "...thinking in standards-complaint ways." NOW READS: "...thinking in standards-compliant ways." [53] First example (top of page); return unless ($node->nodeType eq &XML_ELEMENT_NODE); NOW READS: return unless ($node->nodeType eq XML_ELEMENT_NODE() ); (53) code example in sub{} at top of page; I could not get Example 3-6 to work unless I changed the "return" line to be: return unless (ref($node) eq 'XML::LibXML::Element'); [note: I had previously changed the earlier error (rm the "&"), but this did not matter.] This problem is CORRECTED with the CHANGE to page 53 noted above. (59) Second row of table, first column; $endoding NOW READS: $encoding (59) 2nd paragraph; "You can, however, ... to come through dateattributes..." NOW READS: "You can, however, ...to comb through date attributes..." {60} example 3-10, line 2; my $writer = new XML::Writer( OUTPUT =$output ); NOW READS: my $writer = new XML::Writer( OUTPUT =$output, NEWLINES =1); (66) Code snippet in the middle; The comment in line 2 of the code snippet previously wrapped into line 3 Line 3 of the code snippet NOW READS: # utf-8 (67) 1st paragraph; "...(inlcuding Mac OS X)..." NOW READS "...(including Max OS X)..." {68} Paragraph starting "Unicode"; "first two bits" NOW READS "first two bytes" (68) Footnote; "identify the document at UTF-8" NOW READS: "identify the document as UTF-8" [87] 2nd Paragraph, the sentence, "The program preserves the document prolog, processing instructions, and comments." HAS BEEN DELETED. {97} characters handler method; $self->in_element( h1 ) NOW READS $self->in_element('h1') [112] three times on page 112 and 113; Three instances of "Makefile.PM" NOW READ "Makefile.PL".