[xsd-users] invalid byte 1

Boris Kolpackov boris at codesynthesis.com
Mon Jun 2 10:04:21 EDT 2008


Hi,

K.Karamazen <k.karamazen at trinite.nl> writes:

> When using schema found at:
> #http://www.datex2.eu/?q=node/45
> 
> xsd cxx-tree --generate-
> polymorphic /home/kk/var/xsd/datex2/DATEXIISchema_1_0_1_0.xsd 
> 
> 
> /home/kk/var/xsd/datex2/DATEXIISchema_1_0_1_0.xsd:5822:182: error: An
> exception occurred! Type:UTFDataFormatException, Message:invalid byte 1
> () of a 1-byte sequence.

This error would normally mean that the compiler has encountered a
character in your schema which is not valid according to the UTF-8
encoding rules.

However, I tried to download the schema and was able to translate
it to C++ with XSD 3.1.0 without any problems. I used the following
command line:

xsd cxx-tree --generate-polymorphic --namespace-map \
http://datex2.eu/schema/1_0/1_0=Datex2 DATEXIISchema_1_0_1_0.xsd

I also looked at line 5822 in the schema and didn't see anything
suspicious there. Perhaps your copy got corrupted somehow. Can you
download a fresh copy from the website and try again?

Boris




More information about the xsd-users mailing list