You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Stefan Geelen <st...@hotmail.com> on 2002/05/08 16:52:56 UTC

Re: The root element is required in a well-formed document.

Glen,

strange, we use Inputstreams and our files are encoded in UTF-16.

We don't get any error.

We tested it in a Windows 2000 environment (server).

Maybe the encoding need to be set in a UNIX environment ?

Stefan


>From: "Glenn Marcy" <gm...@us.ibm.com>
>Reply-To: xalan-dev@xml.apache.org
>To: xalan-dev@xml.apache.org
>Subject: Re: The root element is required in a well-formed document.
>Date: Tue, 30 Apr 2002 10:00:53 -0400
>
>
>Stefan writes:
> > <?xml version="1.0" encoding="UTF-16" standalone="no" ?>
>
>Is your document entity really encoded in UTF-16 ?  When using a
>Reader the encoding would not matter since it can only provide
>UTF-16 characters, but an InputStream would need to have the
>encoding declaration set correctly.  If it is not, then all sorts
>of errors, including the one you mention, will occur.
>
>-Glenn
>
>




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.