hi -
I can setImageAnnotationRef's fine, but using the same type of code, if I setChannelAnnotationRef to a legal DoubleAnnotation, it does not show up in the XML.
This is using Bio-Formats from MATLAB to write an OME-TIFF (using Bio-Formats for the XML and MATLAB's Tiff() class for the Tiff writing itself). Otherwise, my export is now working and with no xmlvalid errors; it gets imported fine into both ImageJ2 and OMERO.
Thanks,
Gary