Question

Dealing with nullable attributes in XmlTemplater


Badge +3

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

Userlevel 1
Badge +21

Null or empty?

Badge +3

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

Reply