users@jaxb.java.net

Marshaller problems

From: Fernando Martins <fr_martins_at_IOL.PT>
Date: Mon, 05 May 2003 13:05:52 -0600

Hi,
I'm having a problem with the jaxb marshaller. I have the following xsd,

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
 <xs:element name="response" type="ResponseType"/>
 <xs:complexType name="ResponseType">
  <xs:sequence>
   <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded">
    <xs:complexType>
     <xs:simpleContent>
      <xs:extension base="xs:string">
       <xs:attribute name="name" type="xs:string" use="required"/>
       <xs:attribute name="paramtype" type="xs:string" use="required"/>
      </xs:extension>
     </xs:simpleContent>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
  <xs:attribute name="client" type="xs:string" use="required"/>
  <xs:attribute name="action" type="xs:string" use="required"/>
  <xs:attribute name="clientTransID" type="xs:long" use="optional"/>
  <xs:attribute name="RespCode" type="xs:string" use="required"/>
 </xs:complexType>
</xs:schema>


And I use the xjc.bat command to build the classes to process this xsd. But I don?t know how to generate a list of parameter elements. I couldn?t find the setParameter(List) method. How can I do this? Can any one help me?
Thanks.