Hello, I wrote a tool in C++ to work on content.xml directly to replace some placeholders without using the libreoffice libraries. I wonder about some XML constructions. In a Writer document I write: Manfred Rebentisch<tab>{{today}} The XML: <text:p text:style-name="P9">Manfred Rebentisc<text:span text:style-name="T6">h<text:tab/>{{today}}</text:span></text:p> Why is the "h" separated? T6 is: <style:style style:name="T6" style:family="text"> <style:text-properties officeooo:rsid="000aa20f"/> </style:style> But why? In another line I write in bold and centered: Rechnung Nr. {{orderid}} The XML is: <text:p text:style-name="P1"> <text:span text:style-name="T1">Rechnung Nr.</text:span> <text:span text:style-name="T2"> {</text:span> <text:span text:style-name="T3">{</text:span> <text:span text:style-name="T2">orderid}</text:span> <text:span text:style-name="T3">}</text:span> </text:p> But why this crazy construction? <style:style style:name="T1" style:family="text"> <style:text-properties fo:font-size="12pt" style:font-size-asian="12pt" style:font-size-complex="12pt"/> </style:style> <style:style style:name="T2" style:family="text"> <style:text-properties fo:font-size="12pt" officeooo:rsid="0008e5d6" style:font-size-asian="12pt" style:font-size-complex="12pt"/> </style:style> <style:style style:name="T3" style:family="text"> <style:text-properties fo:font-size="12pt" officeooo:rsid="000c460c" style:font-size-asian="12pt" style:font-size-complex="12pt"/> </style:style> In another line I write only {{name}} The XML: <text:p text:style-name="P3"><text:span text:style-name="T7"> {</text:span>{name<text:span text:style-name="T7">}</text:span>} </text:p> Is it possible to store the document in a cleaner way? Thank you for answers, Manfred -- COMPARAT Software-Entwicklungs-GmbH Willy-Brandt-Allee 31a 23554 Lübeck Web: https://comparat.de _______________________________________________ LibreOffice mailing list LibreOffice@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/libreoffice