Skip to main content
Solved

Escaped Characters (">" and "<") Appearing in XML When Using xmlUpdater

  • Aug 22, 2025 6:37 PM UTC
  • 2 replies
  • 107 views

francisco_1988
Contributor
Forum|alt.badge.img+5

Guys, I need some help with my XML. In some parts of my document, characters like "&gt" and "&lt" appear. Specifically inside the <data_dictionary></data_dictionary> tag, where I perform an update using the xmlUpdater transformer. What could be causing this?

Best answer by takashi

Hi ​@francisco_1988 ,

If you intend to replace the contents of the target element with XML contents stored in a feature attribute, you will have to set "XML/XQuery" to the Value Type column and use the "fme:get-xml-attribute" function in the Value column to get the attribute value in order to treat it as an XML fragment, not a string value. See the XMLUpdater Help to learn more.

View original
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
  • Aug 23, 2025 2:17 AM UTC

Hi ​@francisco_1988 ,

If you intend to replace the contents of the target element with XML contents stored in a feature attribute, you will have to set "XML/XQuery" to the Value Type column and use the "fme:get-xml-attribute" function in the Value column to get the attribute value in order to treat it as an XML fragment, not a string value. See the XMLUpdater Help to learn more.


francisco_1988
Contributor
Forum|alt.badge.img+5

Olá@francisco_1988 ,

Se você pretende substituir o conteúdo do elemento de destino por conteúdo XML armazenado em um atributo de recurso, será necessário definir "XML/XQuery" na coluna Tipo de Valor e usar a função "fme:get-xml-attribute" na coluna Valor para obter o valor do atributo e tratá-lo como um fragmento XML, não como um valor de string. Consulte a Ajuda do XMLUpdater para saber mais.

Thank you sr. Takashi!