JAXB..problkems..

hi all,

i am using jaxb to generate java object from xsd..

but the result of class file are all unicode string.. e.g. \u1012\u0212.....

how come ?

here is the command to generate

D:\jaxb>d:\tomcat50-jwsdp\jaxb\bin\xjc.bat -p com.ibm.dw guitars.xsd -d src

parsing a schema...

compiling a schema...

...

..

result object content.

//

// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.5-b16-fcs

// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>

// Any modifications to this file will be lost upon recompilation of the source schema.

// Generated on: 2006.09.18 墬 11:19:36 CST

//

\u000d\u000a\u0070\u0061\u0063\u006b\u0061\u0067\u0065\u0020\u0063\u006f\u006d\u002e\u0069\u0062\u006d\u002e\u0064\u0077\u003b\u000d\u000a\u000d\u000a\u000d\u000a\u002f\u002a\u002a\u000d\u000a\u0020\u002a\u0020\u004a\u0061\u0076\u0061\u0020\u0063\u006f\u006e\u0074\u0065\u006e\u0074\u0020\u0063\u006c\u0061\u0073\u0073\u0020\u0066\u006f\u0072\u0020\u0062\u0061\u0063\u006b\u002d\u0073\u0069\u0064\u0065\u0073\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u0064\u0065\u0063\u006c\u0061\u0072\u0061\u0074\u0069\u006f\u006e\u002e\u000d\u000a\u0020\u002a\u0020\u0009\u003c\u0070\u003e\u0054\u0068\u0065\u0020\u0066\u006f\u006c\u006c\u006f\u0077\u0069\u006e\u0067\u0020\u0073\u0063\u0068\u0065\u006d\u0061\u0020\u0066\u0072\u0061\u0067\u006d\u0065\u006e\u0074\u0020\u0073\u0070\u0065\u0063\u0069\u0066\u0069\u0065\u0073\u0020\u0074\u0068\u0065\u0020\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0009\u0063\u006f\u006e\u0074\u0065\u006e\u0074\u0020\u0063\u006f\u006e\u0074\u0061\u0069\u006e\u0065\u0064\u0020\u0077\u0069\u0074\u0068\u0069\u006e\u0020\u0074\u0068\u0069\u0073\u0020\u006a\u0061\u0076\u0061\u0020\u0063\u006f\u006e\u0074\u0065\u006e\u0074\u0020\u006f\u0062\u006a\u0065\u0063\u0074\u002e\u0020\u0009\u0028\u0064\u0065\u0066\u0069\u006e\u0065\u0064\u0020\u0061\u0074\u0020\u0066\u0069\u006c\u0065\u003a\u002f\u0044\u003a\u002f\u006a\u0061\u0078\u0062\u002f\u0067\u0075\u0069\u0074\u0061\u0072\u0073\u002e\u0078\u0073\u0064\u0020\u006c\u0069\u006e\u0065\u0020\u0034\u0029\u000d\u000a\u0020\u002a\u0020\u003c\u0070\u003e\u000d\u000a\u0020\u002a\u0020\u003c\u0070\u0072\u0065\u003e\u000d\u000a\u0020\u002a\u0020\u0026\u006c\u0074\u003b\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006e\u0061\u006d\u0065\u003d\u0022\u0062\u0061\u0063\u006b\u002d\u0073\u0069\u0064\u0065\u0073\u0022\u0020\u0074\u0079\u0070\u0065\u003d\u0022\u007b\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0077\u0077\u0077\u002e\u0077\u0033\u002e\u006f\u0072\u0067\u002f\u0032\u0030\u0030\u0031\u002f\u0058\u004d\u004c\u0053\u0063\u0068\u0065\u006d\u0061\u007d\u0073\u0074\u0072\u0069\u006e\u0067\u0022\u002f\u003e\u000d\u000a\u0020\u002a\u0020\u003c\u002f\u0070\u0072\u0065\u003e\u000d\u000a\u0020\u002a\u0020\u000d\u000a\u0020\u002a\u002f\u000d\u000a\u0070\u0075\u0062\u006c\u0069\u0063\u0020\u0069\u006e\u0074\u0065\u0072\u0066\u0061\u0063\u0065\u0020\u0042\u0061\u0063\u006b\u0053\u0069\u0064\u0065\u0073\u000d\u000a\u0020\u0020\u0020\u0020\u0065\u0078\u0074\u0065\u006e\u0064\u0073\u0020\u006a\u0061\u0076\u0061\u0078\u002e\u0078\u006d\u006c\u002e\u0062\u0069\u006e\u0064\u002e\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u000d\u000a\u007b\u000d\u000a\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002a\u002a\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u002a\u0020\u0047\u0065\u0074\u0073\u0020\u0074\u0068\u0065\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u006f\u0066\u0020\u0074\u0068\u0065\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u0070\u0072\u006f\u0070\u0065\u0072\u0074\u0079\u002e\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u002a\u0020\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u002a\u0020\u0040\u0072\u0065\u0074\u0075\u0072\u006e\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u002a\u0020\u0020\u0020\u0020\u0020\u0070\u006f\u0073\u0073\u0069\u0062\u006c\u0065\u0020\u006f\u0062\u006a\u0065\u0063\u0074\u0020\u0069\u0073\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u002a\u0020\u0020\u0020\u0020\u0020\u007b\u0040\u006c\u0069\u006e\u006b\u0020\u006a\u0061\u0076\u0061\u002e\u006c\u0061\u006e\u0067\u002e\u0053\u0074\u0072\u0069\u006e\u0067\u007d\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u002a\u002f\u000d\u000a\u0020\u0020\u0020\u0020\u006a\u0061\u0076\u0061\u002e\u006c\u0061\u006e\u0067\u002e\u0053\u0074\u0072\u0069\u006e\u0067\u0020\u0067\u0065\u0074\u0056\u0061\u006c\u0075\u0065\u0028\u0029\u003b\u000d\u000a\u000d\u000a\u0020\u0020\u0020\u0020\u002f\u002a\u002a\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u002a\u0020\u0053\u0065\u0074\u0073\u0020\u0074\u0068\u0065\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u006f\u0066\u0020\u0074\u0068\u0065\u0020\u0076\u0061\u006c\u0075\u0065\u0020\u0070\u0072\u006f\u0070\u0065\u0072\u0074\u0079\u002e\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u002a\u0020\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u002a\u0020\u0040\u0070\u0061\u0072\u0061\u006d\u0020\u0076\u0061\u006c\u0075\u0065\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u002a\u0020\u0020\u0020\u0020\u0020\u0061\u006c\u006c\u006f\u0077\u0065\u0064\u0020\u006f\u0062\u006a\u0065\u0063\u0074\u0020\u0069\u0073\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u002a\u0020\u0020\u0020\u0020\u0020\u007b\u0040\u006c\u0069\u006e\u006b\u0020\u006a\u0061\u0076\u0061\u002e\u006c\u0061\u006e\u0067\u002e\u0053\u0074\u0072\u0069\u006e\u0067\u007d\u000d\u000a\u0020\u0020\u0020\u0020\u0020\u002a\u002f\u000d\u000a\u0020\u0020\u0020\u0020\u0076\u006f\u0069\u0064\u0020\u0073\u0065\u0074\u0056\u0061\u006c\u0075\u0065\u0028\u006a\u0061\u0076\u0061\u002e\u006c\u0061\u006e\u0067\u002e\u0053\u0074\u0072\u0069\u006e\u0067\u0020\u0076\u0061\u006c\u0075\u0065\u0029\u003b\u000d\u000a\u000d\u000a\u007d\u000d\u000a

[6063 byte] By [kyhoa] at [2007-10-3 5:14:11]
# 1
Which JAXB xjc compiler is used?Compile wih the JAXB compiler in JWSDP 1.6 or JWSDP 2.0.
dvohra09a at 2007-7-14 23:20:41 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
hi dvohra09,i am using JWSDP 1.6. since i believe it will be more stable than 2.0.. and using jdk 1.4.2_xxdid u face the similar problems?i found that the code under impl directory is fine..just other code content are in unicode format.
kyhoa at 2007-7-14 23:20:41 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Reinstall JWSDP 1.6.https://sdlc4d.sun.com/ECom/EComActionServlet/DownloadPage:~:com.sun.sunit.sdlc.content.DownloadPageInfo;jsessionid=19F16C00DC85772A96B2D5881978BC1F;jsessionid=19F16C00DC85772A96B2D5881978BC1F
dvohra09a at 2007-7-14 23:20:41 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...