For example, in case you modify Address.xsd to

      <xs:attribute name="id" type="xs:int"/>

(originally id has no type , therefore string)

ant generate.compile ends with the following error:

generate.compile:
    [javac] Compiling 15 source files to
C:\java\project\JaxMe2\build\classes
    [javac]
C:\java\project\JaxMe2\build\examples\src\net\sf\jaxme\examples\misc
\address\impl\AddressTypeSerializer.java:200:
addAttribute(java.lang.String,java
.lang.String,java.lang.String,java.lang.String,java.lang.String) in
org.xml.sax.
helpers.AttributesImpl cannot be applied to
(java.lang.String,java.lang.String,j
ava.lang.String,java.lang.String,int)
    [javac]     _1.addAttribute("", "id", getAttributeQName(pData, "",
"id"), "C
DATA", _2.getId());
    [javac]       ^
    [javac] 1 error

Actually Sun's JAXB RI in JWSDP 1.2 resolves this situation by using
javax.xml.bind.DatatypeConverter.printXXX method.

Thanks,

Ias

=========================================================
Lee, Changshin (Korean name)
Ias (International name)
           Company Web Site: http://www.tmax.co.kr
           Personal Web Site: http://www.iasandcb.pe.kr
---------------------------------------------------------
Senior Researcher, Emerging Technology Evangelist
JCP member - http://jcp.org/en/participation/members/L
R&D Institute
Tmax Soft, Inc.
JCP member - http://jcp.org/en/participation/members/T
=========================================================


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jaxme-jaxb-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxme-jaxb-dev

Reply via email to