I am asking this question because of the lack of an enclosing
<FuelStations> tag. 

I have no control over the incoming xml.

 

Thanks for any help you can provide

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harp,
George
Sent: Wednesday, May 07, 2008 9:48 AM
To: [email protected]
Subject: [jibx-users] Collection Question

 

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. 



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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to