Yeah, I got confused because JAXP with JDK was not throwing an error at all for "UTF8", which is a Java encoding and not IANA. But I got it now. Thanks much Andy!
-Vivek. On Wed, 23 Mar 2005 11:00:16 -0800, Andy Clark <[EMAIL PROTECTED]> wrote: > vivek agarwal wrote: > > In the XML declaration prolog, are Java encodings allowed as well? I > > tried to parse an XML doc using JDK 1.5 with the following decl: > > <?xml version="1.0" encoding="UTF8" ?> > > You should always use IANA encoding names. If, however, you > do not control the creation of the documents but they contain > Java encoding names, the parser has a setting to allow this. > Please review the Features page in the documentation for > details. > > -- > Andy Clark * [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]