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: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]