Re: [jibx-users] Marshalling array with null elements

2008-04-03 Thread Ian Cotton (icotton)
Behalf Of Dennis Sosnoski Sent: 04 April 2008 04:37 To: JiBX users Subject: Re: [jibx-users] Marshalling array with null elements Hi Ian, Do you want the null items to be represented in the XML? If so, you can use nillable="true" to support this. If you *don't* want the null item

Re: [jibx-users] Marshalling array with null elements

2008-04-03 Thread Dennis Sosnoski
Hi Ian, Do you want the null items to be represented in the XML? If so, you can use nillable="true" to support this. If you *don't* want the null items represented in the XML you need to compact the array ahead of time (or hide it behind an iterator or such - but then you won't get an array wh

[jibx-users] Marshalling array with null elements

2008-03-20 Thread Ian Cotton (icotton)
Hi, I am trying to use JiBX to marshal an object containing an array. Some elements of the array are null. This results in null pointer exceptions in the marshalling code. My original mapping looked like this: I realised that altho