![](https://secure.gravatar.com/avatar/29c7bbff49b1599eddb2ec73fd9ffa6e.jpg?s=120&d=mm&r=g)
On 24 May 2015, at 22:53, Wolfgang Schuster
wrote: Am 24.05.2015 um 21:33 schrieb Meer, H. van der
: In this case you have to provide a working minimal example.
Wolfgang
Here an example as minimal as I could construct.
The spaces in the output are produced by the spaces between the tags (\xmlstrip doesn’t seem to work) and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them.
To center your table this isn’t necessary when you replace \midaligned with a framedtext environment in combination with “location=middle” or use a float command like \placefigure.
\startxmlsetups xmlcommon \xmlsetsetup{\xmldocument}{table|tr|td}{xmlcommon:*} \stopxmlsetups
\xmlregistersetup{xmlcommon}
\startxmlsetups xmlcommon:table % \removeunwantedspaces \startembeddedxtable \xmlflush{#1} \stopembeddedxtable % \ignorespaces \stopxmlsetups
\startxmlsetups xmlcommon:tr % \removeunwantedspaces \startxrow \xmlflush{#1} \stopxrow % \ignorespaces \stopxmlsetups
\startxmlsetups xmlcommon:td % \removeunwantedspaces \startxcell \xmlflush{#1} \stopxcell % \ignorespaces \stopxmlsetups
Input from file or from buffer doesn't make a difference. I inserted the \removeunwantedspaces and \ignorespaces, as you suggested. The xmlstrip macros do not make any difference, either active or commented out. Then there still remains extra space at the end. See below.