Fixed to iterate over reference#comments (Array).
Fixed to escape # by \\ for QName.