http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2512 *** shadow/2512 Mon Jul 9 05:10:20 2001 --- shadow/2512.tmp.10029 Mon Jul 9 05:10:20 2001 *************** *** 0 **** --- 1,31 ---- + +============================================================================+ + | typing mistake in code example of chapter "Constructing an XML Reader" | + +----------------------------------------------------------------------------+ + | Bug #: 2512 Product: Xerces-C | + | Status: NEW Version: 1.5 | + | Resolution: Platform: All | + | Severity: Minor OS/Version: All | + | Priority: Other Component: Documentation | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: http://xml.apache.org/xerces-c/program.html#ConstructParser2 | + +============================================================================+ + | DESCRIPTION | + Hi there, + in the "SAX2 Programming Guide" there ist the following code example in + Chapter "Constructing an XML Reader": + + (1) ContentHandler* contentHandler = new DefaultHandler(); + (2) ErrorHandler* errHandler = (ErrorHandler*) contentHandler; + (3) parser->setContentHandler(docHandler); + (4) parser->setErrorHandler(errHandler); + + There is the usage of an undefined symbol 'docHandler' in line 3. Shouldn't it + be contentHandler? (Probably a Copy&Paste-mistake, as in a previous code + axample a symbol named 'docHandler' was used...) + + Kind regards, + Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
