![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
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 \starttext \startbuffer[a] <?xml version="1.0" encoding="UTF-8"?> <root> <table> <tr> <td>A</td> </tr> </table> </root> \stopbuffer \startbuffer[b] <?xml version="1.0" encoding="UTF-8"?> <root> <table><tr><td>A</td></tr></table> </root> \stopbuffer \ruledhbox{\xmlprocessbuffer{root}{a}{}} \ruledhbox{\xmlprocessbuffer{root}{b}{}} \stoptext Wolfgang