No, you can use a custom marshaller/unmarshaller directly for a value without an associated element name. You can even define a <mapping> without an element name that uses a custom marshaller/unmarshaller, since in that case it's up to the marshaller/unmarshaller code to do whatever is appropriate.

The org.jibx.extras.HashMapperStringToComplex code assumes a wrapper element around the key-value pairs. For an example that doesn't, look at org.jibx.extras.TypedArrayMapper.

This would be another discussion that would be great to add to the Wiki, BTW.

- Dennis

Norm Deane wrote:

I don't think that example will work in my situation. In the example, the
map elements that needs to be marshalled/unmarshalled are nested within a
<map> element. This allows a marshaller/unmarshaller to be mapped to the
<map> container element which only contains the map elements and nothing
more.


In my situation, the map elements do not have a container around them.  So
if I were to write a custom marshaller/unmarshaller it would have to be
mapped at the <ItemDetail> level and would have to handle not only the
<Extrinsic> elements but all of <ItemDetail>'s elements. Correct?

--Norm





------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to