Given this incoming xml:
<FuelPriceSearchOutput
xmlns="http://www.navteq.com/schemas/ncs/cds/fuelpricesearchoutput-1.1/"
>
<ns1:FuelStation
xmlns:ns1="http://www.navteq.com/schemas/ncs/cds/domain-1.1/">
...
</ns1:FuelStation>
<ns1:FuelStation
xmlns:ns1="http://www.navteq.com/schemas/ncs/cds/domain-1.1/">
...
</ns1:FuelStation>
<ns1:FuelStation
xmlns:ns1="http://www.navteq.com/schemas/ncs/cds/domain-1.1/">
...
</ns1:FuelStation>
<ns1:FuelStation
xmlns:ns1="http://www.navteq.com/schemas/ncs/cds/domain-1.1/">
...
</ns1:FuelStation>
</FuelPriceSearchOutput>
Would the following mapping be the best approach?
<mapping name="FuelPriceSearchOutput"
class="com.traffic.hdradio.contentmanager.fuelprices.soap.response.FuelP
riceSearchResponse">
<namespace
uri="http://www.navteq.com/schemas/ncs/cds/fuelpricesearchoutput-1.1/"
default="elements"/>
<collection field="fuelStationList"
item-type="com.traffic.hdradio.contentmanager.fuelprices.soap.response.f
uel.FuelStation"
usage="optional"/>
...
</mapping>
public class FuelPriceSearchResponse
{
private ArrayList<FuelStation> fuelStationList;
public FuelPriceSearchResponse()
{
fuelStationList =
new ArrayList<FuelStation>( );
}
}
public class FuelStation
{
...
}
George Harp
Traffic.com Development
NAVTEQ - Chicago
(T) +312-894-7225
[EMAIL PROTECTED]
www.navteq.com <http://www.navteq.com>
The information contained in this communication may be CONFIDENTIAL and is
intended only for the use of the recipient(s) named above. If you are not the
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of its contents, is
strictly prohibited. If you have received this communication in error, please
notify the sender and delete/destroy the original message and any copy of it
from your computer or paper files.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users