[xsd-users] bug report for xsd
Lixuesong
givemenews at tom.com
Sun Sep 17 21:13:01 EDT 2006
Hi,
I found a bug on xml schema base64Binary type.
put the files in the attachment into one directory, then exec the following command:
xsd cxx-tree --generate-serialization hello.xsd
g++ -o driver driver.cxx hello.cxx -lxerces-c -lpthread
./driver hello.xml
the output is:
[lxs at mos117 /home/lxs/shay/xsd 1054]$ ./driver hello.xml
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<hello>
<greeting>Hello</greeting>
<name>xOO6
</name>
</hello>
notice the output between <name> and </name>, why there is a line feed added?
the output expected should be: <name>x006</name>
Environment I use:
OS: redhat linux AS3 update4
xsd: version 2.2.0
xerces-c: 2.7.0
Best regards,
Lixuesong
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.xsd
Type: application/octet-stream
Size: 341 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060918/eafe383d/hello.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: driver.cxx
Type: application/octet-stream
Size: 217 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060918/eafe383d/driver.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.xml
Type: text/xml
Size: 209 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060918/eafe383d/hello.bin
More information about the xsd-users
mailing list