Hi Kapil,

You should definitely get something generated for MyElement1 and 
MyElement2 based on the example you provided, if you just generate 
without any special options. Can you check the generated binding 
definition for name="MyElement1" and name="MyElement2"? That might give 
you a hint at what's going on.

If that doesn't help, zip up your project (hopefully using an Ant build) 
and attach it to a Jira bug report.

  - 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



Kapil Anand wrote:
> hi
> I am using codegen (1.2.1) to generate Java code.
> I see only the complexTypes being mapped to the java code.
> I would like to generate code for xsd elements that use these complex types.
> I tried putting the element names in the includes in customization file but
> it does not help.
>
> Example:
> <xs:complexType name="MySchemaType">
> ...
> </xs:complexType>
>
> <xs:element name="MyElement1" type="MySchemaType"/>
> <xs:element name="MyElement2" type="MySchemaType"/>
>
> Generated code has MySchemaType.java but nothing for MyElement1 and
> MyElement2 even after I added them as includes. Looks like I am missing some
> important point here. (I could not find any related explanatory note)
>
> thanks for the help
> kapil
>   

------------------------------------------------------------------------------
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