Hi,
I have in my schema file the following complexType
<xs:complexType name="ProgramType">
<xs:choice maxOccurs="unbounded">
<xs:element name="add" type="actionType" minOccurs="0"/>
<xs:element name="delete" type="deleteType" minOccurs="0"/>
<xs:element name="redeploy" type="actionType" minOccurs="0"/>
<xs:element name="update" type="actionType" minOccurs="0"/>
</xs:choice>
<xs:attribute name="version" type="VersionType" use="required"/>
</xs:complexType>
When I marshal my object out to XML, the version attribute is not shown. I found out that the SourceGenerator creates two classes (and the associated descriptor classes) called ProgramType.java and ProgramTypeItem.java. My attribute "version" is located inside ProgramTypeItem.java. From a descriptor perspective ProgramTypeItem.java is considered to be a container (set to true). The marshaller does not output objects that are containers.
Is there a way to get around this problem so that either:
1) SourceGenerator creates the "version" attribute inside ProgramType.java and not ProgramTypeItem.java. I would think this would be easier.
2) To change the marshaller so that container objects are created. However, I think this would cause more problems.
Regards,
HC.
