Hello, As I thought the original code by Juergen was also wrong it should be as follows (I do the diff by hand, sorry): os << "<Features" << write_attribute("rotate", rotate) << write_attribute("islongtable", is_long_tabular) << write_attribute("endhead", endhead) << write_attribute("endfirsthead", endfirsthead) << write_attribute("endfoot", endfoot) << write_attribute("endlastfoot", endlastfoot) << - ">\n\n"; + "/>\n\n"; You could also write : + "></Features>\n\n"; Which is equivalent but somewhat more verbose. Sincerely, P.O. Gaillard