On Dec 27, 2007 10:50 AM, Ben Stover <> wrote:
> I got a XML doc and a java class which should process this XML doc (on WinXP-OS).
>
> Unfortunately I am getting an execption:
>
> "Invalid byte 1 of 1-byte UTF-8 sequence"
>
> What's wrong?
Probably the file isn't in UTF-8. If you don't include an encoding= in
the XML declaration, it is assumed to be UTF-*.
Most likely, this document is really ISO-8859-1 or its superset, Windows1252.
> Because I have not the java source I can only change the XML doc.
> The XML doc starts:
>
> <?xml version="1.0"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> ....
> It could be that there are some line end conversion errors when I downloaded the XML file from
> Linux server.
>
> Could this be the problem ?
Not likely.
--
Tony Lavinio DataDirect Technologies
High-performance XML Processor: DataDirect XQuery http://www.xquery.com/
EDI/Flat File<->XML Converters (Java|.Net) http://www.xmlconverters.com/