xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edwin Goei <edwi...@sun.com>
Subject Re: Crimson 1.1.1 and 1.1.2beta2 don't like XML decls?
Date Wed, 03 Oct 2001 01:08:52 GMT
Hugh Greene wrote:
> 
> In particular, the message it gives is "XML declaration may only begin
> entities."  The stack trace (which I don't have to hand) shows the call
> path (in org.apache.Crimson.Parser2) as being parseInternal:487 ->
> maybeMisc:1088 -> maybePI:966 (line numbers from 1.1.2beta2 source
> code).  This suggests that for some reason maybeXmlDecl is failing to
> recognise the declaration, but I can't understand why.  It's just the usual
> '<?xml version="1.0"?>', it's right at the start of the file, and the
> file's just a typical Windows file with CR-LF line endings.
> 
> I can provide a reproducible case on request, I'm sure.
> 
> Any clues?  Is this a known bug?  Or is it obvious where I'm going wrong?

Could you attach an input file that exhibits the problem?  Crimson
strictly follows the XML spec in that no whitespace can appear before
the XMLDecl in the document.  The stack trace seems to suggest that the
XMLDecl is not at the start of the file.

-Edwin

---------------------------------------------------------------------
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


Mime
View raw message