You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Pavani Mukthipudi <Pa...@Sun.COM> on 2001/09/03 10:17:26 UTC
Re: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3040
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" <ju...@greenbytes.de>
> To: <pa...@india.sun.com>
> 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: julian.reschke@greenbytes.de
> X-MDaemon-Deliver-To: pavani.mukthipudi@india.sun.com
>
> 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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org