> The simplest solution is to write a custom converter for your Hour type. > Then your free to write whatever you like into the XML representation for > your null values. Have a look at the converter tutorial to see how you may > forward the conversion for the individual fields of the Hour type to XStream > again.
This is exactly what I did. That gave me all the flexibility I needed to serialize the Hours object. Thanks for the pointer. I was actually looking at the Converter tutorial but hadn’t looked at the complex converter example at the bottom.
