Hi 

I am having some difficulty in creating the mapping-xml for the following
xml (below). Once I create the mapping xml, i will be able to create the
java-beans for it.
I am also appending the partial-mapping i tried to create for it.
I would appreciate any help, suggestions.
thanks,
sudu

here is the input xml i want to create a map for:

<ValidateConfigResult>
        <Configuration>
                <ConfigString>ModelA+Cstic1+Cstic2+Cstic3</ConfigString>
                <ConfigId>11020101</ConfigID>
                <Timestamp>09012003110101</Timestamp>
                <Status>false</Status>
                <Model>ModelA</Model>
                <ShipDate>0</ShipDate>
                <Reference>CatID4Revision2</Reference>
                <Errors>
                        <Error>
                                <Code>58</Code>
                                <Message
Characteristic='Cstic-A'Category='Cat-A' Description='Cat-A description'>
                                        The configuration request contains
an incompatiblity between a Base and a FIO
                                </Message>
                        </Error>
                        <Error>
                                <Code>58</Code>
                                <Message
Characteristic='Cstic-C'Category='Cat-C' Description='Cat-C description'>
                                        The configuration request contains
an incompatiblity between a Base and a FIO
                                </Message>
                        </Error>
                </Errors>
        </Configuration>
</ValidateConfigResult> 

and here is the map i have created so far:

<mapping>
        <class name="com.ibs.oneworld.catalog.result.ValidateConfigResult">
                <map-to xml="ValidateConfigResult"/>
                
                        <field name="Configuration"
        
type="com.hp.ibs.oneworld.catalog.result.VCResultConfiguration"
                                        collection="vector">
                                <bind-xml name="Configuration"/>
                        </field>

        </class>
        <class name="com.ibs.oneworld.catalog.result.VCResultConfiguration">

                        <field name="ConfigString"
                                type="java.lang.String">
                                <bind-xml name="ConfigString"
node="element"/>
                        </field>

                        <field name="ConfigID"
                                type="java.lang.String">
                                <bind-xml name="ConfigId" node="element"/>
                        </field>

                        <field name="Status"
                                type="boolean">
                                <bind-xml name="Status" node="element"/>
                        </field>

                        <field name="ModelID"
                                type="java.lang.String">
                                <bind-xml name="Model" node="element"/>
                        </field>

                        <field name="LeadTime"
                                type="integer">
                                <bind-xml name="ShipDate" node="element"/>
                        </field>

                        <field name="CatalogReference"
                                type="java.lang.String">
                                <bind-xml name="Reference" node="element"/>
                        </field>

                        <field name="Errors"
        
type="com.hp.ibs.oneworld.catalog.result.ValidateConfigError"
                                        collection="vector">
                                <bind-xml name="Errors" node="element"/>
                        </field>
        </class>
        <class name="com.ibs.oneworld.catalog.result.ValidateConfigError">

                        <field name="Code"
                                type="integer">
                                <bind-xml name="Code" node="element"/>
                        </field>
        </class>
</mapping>

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

Reply via email to