Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 7902 invoked from network); 7 Sep 2000 09:18:03 -0000 Received: from ns0.connectfree.co.uk (root@212.1.130.33) by locus.apache.org with SMTP; 7 Sep 2000 09:18:03 -0000 Received: from ppp-1-193.cvx2.telinco.net ([212.1.140.193] helo=domserv.synergy-fs.com) by ns0.connectfree.co.uk with esmtp (Exim 2.12 #3) id 13Wxh2-0007oA-00 for general@xml.apache.org; Thu, 7 Sep 2000 10:10:00 +0100 Received: by DOMSERV with Internet Mail Service (5.5.2650.21) id ; Thu, 7 Sep 2000 09:54:42 +0100 Message-ID: <6565B06C4C6BD311B15F0090279363880A6E1B@DOMSERV> From: Anthony Dodd To: "'general@xml.apache.org'" Subject: RE: Bug - Xerces 1.1.3 XMLValidator.switchGrammar() incomplete er ror handling Date: Thu, 7 Sep 2000 09:54:42 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="windows-1252" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi Jeffrey Problem appears to have been solved with xerces release 1.2. Most grate ful for all your help. Regards Anthony Dodd -----Original Message----- From: Jeffrey Rodriguez [mailto:jeffreyr_97@hotmail.com] Sent: 09 August 2000 17:37 To: general@xml.apache.org Subject: Re: Bug - Xerces 1.1.3 XMLValidator.switchGrammar() incomplete error handling Yes, Anthony, if anything it is a bug to emit debug messages to stdout. Just out of curiosity, do you have a testcase or set of conditions that causes this to consistenly occur. I try using the DOMParser with validation off and I don't see this message. Thanks, Jeffrey Rodriguez IBM Silicon Valley XML Development > > I'm using Xerces 1.1.3 and the DOMParser with defauilt features >which I believe sets the parser to a non validating one. I'm consistently >getting the following message being sent to System.out > > grammar not found > > I've traced it down to some incomplete code in XMLValidator's >switchGrammar function. The attached code clearly shows some unfinished >error handling, > > private void switchGrammar(int newGrammarNameSpaceIndex) >{ > Grammar tempGrammar = >fGrammarResolver.getGrammar(fStringPool.toString(newGrammarNameSpaceIndex)) ; > if (tempGrammar == null) { > // Assume that this is a case were namespaces >are being > // used with a DTD grammar. > tempGrammar = fGrammarResolver.getGrammar(""); > //System.out.println("XMLValidator: >tempGrammar="+tempGrammar); > } > if (tempGrammar == null) { > >System.out.println(fStringPool.toString(newGrammarNameSpaceIndex) + " >grammar not found"); > //TO DO report error here > } > else { > fGrammar = tempGrammar; > if (fGrammar instanceof DTDGrammar) { > fGrammarIsDTDGrammar = true; > fGrammarIsSchemaGrammar = false; > } > else if ( fGrammar instanceof SchemaGrammar ) { > fGrammarIsSchemaGrammar = true; > fGrammarIsDTDGrammar = false; > } > } > } > > is there any chance some one can resolve this, and post the >fix somewhere so that I can pick it up. Also is there anybody who can >explain why the parser is checking for grammar when I'm assuming I've not >asked it to. > > Regards > Anthony Dodd > >--------------------------------------------------------------------- >In case of troubles, e-mail: webmaster@xml.apache.org >To unsubscribe, e-mail: general-unsubscribe@xml.apache.org >For additional commands, e-mail: general-help@xml.apache.org > ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com --------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: general-unsubscribe@xml.apache.org For additional commands, e-mail: general-help@xml.apache.org