Hi Folks,
I'm pretty new to castor and I need some advise. Here is an extract of my
XML for which I'm trying to write a mapping xml:
<Address>
<Name xml:lang="en">Acme</Name>
<PostalAddress name="default">
<DeliverTo>Joe Smith</DeliverTo>
<DeliverTo>Mailstop M-543</DeliverTo>
<Street>123 Anystreet</Street>
<City>Sunnyvale</City>
<State>CA</State>
<PostalCode>90489</PostalCode>
<Country isoCountryCode="US">United States</Country>
</PostalAddress>
</Address>
This is an extract from the example cXML Order Request.
I want to avoid creating a class for the "Name" element and just want to
create a PostalAddress class with the location = "Address" as its attribute
in the mapping.
Is it possible. Is it necessary to create classes for each and every element
if it has an attribute/s
The only reason I have to create a separate Name class is because there are
two attributes "xml:lang" and the text( Acme ) as a "PCDATA".
In my case xml:lang will always be "en" so I do not want to create a
separate class just to have this element in the xml, Infact the whole
element <Name xml:lang="en">Acme</Name>
Is going to be the same for me everytime.
TIA
Avinash
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user