Skip to main content
Question

Dealing with nullable attributes in XmlTemplater


fme_hans
Contributor
Forum|alt.badge.img+5

Hi,

 

I am building an xml file with the XMLTemplate. Empty fields are displayed differently than expected. <attribute></attribute> is displayed (exported) as <attribute/>

By first changing empty fields to <attribute>Replace this text with nothing</attribute> and then replace the text 'Replace this text with nothing' with null using the string concatenator, it works. But I'd rather be able to properly set the empty fields in the XMLTemplate. How can this be done?

 

 

2 replies

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • March 24, 2023

Null or empty?


fme_hans
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • March 24, 2023

When the fields are empty i get this <attribute/> and i need this: <attribute></attribute>


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings