From: Michael B. <mbe...@mb...> - 2005-12-29 12:07:07
|
Dannes Wessel wrote: > Maybe too late, but searching this pattern "The processing instruction > target matching > "[xX][mM][lL]" is not allowed" on internet only gives hints regarding > whitespaces in front of the <?xml line. Well, as I said in an earlier off-list reply, you also get this message with certain parsers that (wrongly) object to a BOM on utf-8 encoded files. But it's not really relevant here anyway, since we are all agreed that the OP's sample document is perfectly well-formed and has nothing before the XML declaration. And if the DOCTYPE declaration is deleted, eXist accepts the file with no problems. This seems to indicate that recent changes, presumably those involving enhanced validation support, are somehow causing the parser either (a) to see something before the XML declaration that wasn't actually there in the original imput document -- maybe a buffer containing that document is being corrupted while the DTD is being fetched? or (b) to attempt the parse the XML declaration as though it was a PI (which, despite the misleadingly identical syntax, it isn't). This can happen if the parser sees the XML declaration twice, which again could point to some sort of buffer corruption. Michael Beddow |