How have you set the "Whitespace Handling" parameter in the XMLFormatter?
The XMLFormatter has a setting called "Whitespace handling". Have you tried setting it to "Remove excess whitespace"?
Thank You so much, my mistake I missed this option and just reflected "Remove empty elements" and "Collapse empty elements"...
Thank You so much, my mistake :-( I missed this option and just reflected "Remove empty elements" and "Collapse empty elements"...
Good to hear you found those options :-)
For what it's worth, this template expression
<objects>
<object>
{
fme:get-attribute("value1")
}
</object>
<object>{
fme:get-attribute("value2")
}</object>
</objects>
generates this XML document.
<objects>
<object>
1
</object>
<object>2</object>
</objects>
Good to hear you found those options :-)
For what it's worth, this template expression
<objects>
<object>
{
fme:get-attribute("value1")
}
</object>
<object>{
fme:get-attribute("value2")
}</object>
</objects>
generates this XML document.
<objects>
<object>
1
</object>
<object>2</object>
</objects>
You can cast the long value to a string value with this syntax.
xs:string(<the long value>)