Hi

I am new to Castor and I want to find out if there is a way to configure
Castor Source Code Generator to generate a "HashMap" instead of a "array" of
elements when it creates the JavaBeans source code.  For example I have the
following XML Schema.  I would like for Castor Source Code Generator to
create a HashMap for the "Item" element in the "shiporder" class keyed on
the "name" attribute of the "Item" element.

        <xs:element name="shiporder">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element name="item" maxOccurs="unbounded">
                                        <xs:complexType>
                                                <xs:sequence>
                                                        <xs:element name="title" 
type="xs:string"/>
                                                        <xs:element name="note" 
type="xs:string" minOccurs="0"/>
                                                        <xs:element name="quantity" 
type="xs:positiveInteger"/>
                                                        <xs:element name="price" 
type="xs:decimal"/>
                                                </xs:sequence>
                                                <xs:attribute name="name" 
type="xs:string" use="required"/>
                                        </xs:complexType>
                                </xs:element>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>

Sincerely,

Asim Hussain
X by 2, inc
32000 Northwestern Highway, Suite 125
Farmington Hills, MI 48334
Phone: 248.538.8224
Fax: 248.538.9467
http://www.xby2.com

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to