Hi Alex,

Yes, the default="..." is currently ignored by the code generation from 
schema. It should be pretty easy to implement, and if you'll add a Jira 
to get this in the tracking system I'll make sure it's corrected for the 
1.2.2 release (now planned for early July).

  - Dennis

Dennis M. Sosnoski
XML and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Alexander Ziller wrote:
> Hello all
>
> I m trying to replace our prior XML binding framework JAXB with JiBX since
> it's WAY faster. I only have a few problems so far, most of them are easily
> solved. But no this one:
>
> When using CodeGen, could it be, that it ignores default values of
> attributes?
>
> Example:
>
>  * Schema fragment(s) for this class:
>  * <pre>
>  * ....
>  *     &lt;xs:attribute type="xs:string" default="true" name="enabled"/>
>  * ....
>
> The class gets initialized with start value NULL for the field "enabled"
> instead of TRUE. Is this a missing feature?
>
> I would have to rewrite half of our code because JAXB seems to recognize
> this feature and acts accordingly.
>
> Regards
>
> Alex
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>   

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to