I have an XML Formatter transformer translating a query out of a MSSQL Database. My XLD does not allow empty values, thus I always need to go through with a text editor and find XML Tags which look like this:
<KONTAKT2_EMAIL></KONTAKT2_EMAIL>
and change them to this:
<KONTAKT2_EMAIL xsi:nil="true" />
This is rather time consuming and I would like to perform this validity check in fme. I would therefore need to build in the following logic into the xml formatter transformer:
if Value = Null then XML Tag ends with xsi:nil="true" />
Any idea how to achieve this?