dg_mosaic: Fix microsecond formatting and xml parsing bugs