Skip to main content
Question

Dealing with nullable attributes in XmlTemplater

  • Mar 24, 2023 10:02 AM UTC
  • 2 replies
  • 102 views

fme_hans
Contributor
Forum|alt.badge.img+6

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
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • Mar 24, 2023 11:06 AM UTC

Null or empty?


fme_hans
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • Mar 24, 2023 12:09 PM UTC

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