Skip to main content
Solved

Formatting Problems with XML Output Header and Footer in FME

  • August 8, 2025
  • 2 replies
  • 54 views

francisco_1988
Contributor
Forum|alt.badge.img+5

Hello, I’m new to this forum and have been working with ETL and FME Workbench for a short time.

I’m facing an issue with my XML output: the header and footer formatting come out messed up.

This formatting problem does not appear inside the XMLFormatter transformer, but after saving the physical file, the formatting issue becomes clear.

Has anyone experienced this or knows how to fix it?

Best answer by takashi

Hi ​@francisco_1988 ,

Since a complete, pretty XML document will be built with the XMLTemplater and the XMLFormatter in your workspace, you don't need to use XML writer for writing the document into a file.

Just set "XML File" to the XML Output Type paramerter and specify desired destination file path to the XML Output File parameter in the XMLFormatter. Alternatively, you can also use Text File writer or Data File writer instead of XML writer to write the XML document into a file.

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Celebrity
  • Best Answer
  • August 10, 2025

Hi ​@francisco_1988 ,

Since a complete, pretty XML document will be built with the XMLTemplater and the XMLFormatter in your workspace, you don't need to use XML writer for writing the document into a file.

Just set "XML File" to the XML Output Type paramerter and specify desired destination file path to the XML Output File parameter in the XMLFormatter. Alternatively, you can also use Text File writer or Data File writer instead of XML writer to write the XML document into a file.

 


francisco_1988
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • August 11, 2025

Hi ​@francisco_1988 ,

Since a complete, pretty XML document will be built with the XMLTemplater and the XMLFormatter in your workspace, you don't need to use XML writer for writing the document into a file.

Just set "XML File" to the XML Output Type paramerter and specify desired destination file path to the XML Output File parameter in the XMLFormatter. Alternatively, you can also use Text File writer or Data File writer instead of XML writer to write the XML document into a file.

 

 

Perfect !!! Why does this happen when adding a recorder at the end?