Xerces 1.4.x doesn't report any error when it sees a prefix with an empty namespace name. Only when the prefix is used, a check is made and error is reported. In your example, you are not using the prefix hence it doesn't report the error. This is indeed a bug. Pavani > From: "Julian F. Reschke" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3040 > Date: Mon, 3 Sep 2001 09:10:29 +0200 > Content-Transfer-Encoding: 7bit > X-Priority: 3 (Normal) > X-MSMail-Priority: Normal > Importance: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 > X-MDRemoteIP: 192.168.1.2 > X-Return-Path: [EMAIL PROTECTED] > X-MDaemon-Deliver-To: [EMAIL PROTECTED] > > Hi, > > so do you say that Xerces indeed reports the error? > > I can't reproduce this. My test case is: > > case 3: > try { > doc = DomBuilder.parse ("<foo xmlns:x=''/>"); > fail ("did not catch invalid NS declaration"); > } > catch (org.xml.sax.SAXException ex) { > // expected > } > break; > > where the first line gets a NS-aware parser from JAXP (with a "strict" error > handler enabled) and parses the string. > > -- Pavani Mukthipudi Sun Microsystems Inc. Phone: 080 - 2298989 Extn: 87390 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
