"Herrmann, Michael" wrote:
> If the DTD's first line is:
> 
>         <?xml version='1.0' ?>
> 
> I receive the exception:
> [...]
> 
> If I omitt the line "<?xml ..." at all it works. It works
> also when specifying an encoding declaration. As I understood
> an encoding declaration is optional for ASCII and UTF-8 text
> which my DTD is.
> 
> Does anyone has a hint what the problem is?

That's what the spec says. The XMLDecl in the XML document
requires the "version" pseudo-attribute; the TextDecl in all
other external parsed entities requires the "encoding"
pseudo-attribute. (The XMLDecl and TextDecl are optional,
of course, if you use UTF-8.)

-- 
Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to