Hi,

I'm trying to use Castor to unmarshall XML purchase order documents,
using a number of different scemas.

One of the complex elements contained within the purchase order is
"Party", containing name and address information. I'm expecting to
receive about four of these party elements within each PO; for buyer,
supplier, delivery point, etc.  

Each party has a qualifier code ("role" attribute) such as
"DeliveryPoint". This qualifier code will vary across schemas, so I want
to adopt my own qualifier code within my bean that will be generic from
the schema (ie 1 for Delivery point).  

My questions are:  
1)  Can I do something within the XML mapper to convert a value of
"DeliveryPoint" to a value of 1?  I'd obviously rather do this within
the mapper than within the bean.
2)  Do I HAVE to use a collection of Party objects within my
PurchaseOrder, or could I have 4 specific variables of buyerParty,
supplierParty, etc within my PurchaseOrder, and have some way of
populating these specific variables depending upon the value of the
"role" attribute?

Thanks in advance,

Nigel Kibble.

-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to