30
Views
3
Comments
Solved
[XML Records] XML Emtpy tag but not remove
Question
xml-records
Service icon
Forge asset by Afonso Carvalho
Application Type
Service
Service Studio Version
11.53.17 (Build 61320)

Hi Good Day,

I was wondering how to display an empty tag like this <Tag /> instead of <Tag></Tag>

2019-11-14 12-29-35
Ramon Pigmans
Solution

Oops sorry, didn't read your question correctly. I found this post https://www.outsystems.com/forums/discussion/63697/xml-extension-null-values/ which says it isn't possible. A workaround would be to replace the tags after the XML has been generated.

Is that an option for you?

2019-11-14 12-29-35
Ramon Pigmans

Hi Rogelio,

I'm wondering which server action of the XmlRecords plugin you are using? I've tried to transform a RecordList to XML with an empty value and it displays it as <Tag></Tag>. Exactly as you want. In the DefaultConfig of the action, I've set parameter ExcludeIfNull to false.


2022-12-13 23-10-19
Rogelio Guanlao

Yes that is exactly the results but what I need is  <Tag /> and not <Tag></Tag>

2019-11-14 12-29-35
Ramon Pigmans
Solution

Oops sorry, didn't read your question correctly. I found this post https://www.outsystems.com/forums/discussion/63697/xml-extension-null-values/ which says it isn't possible. A workaround would be to replace the tags after the XML has been generated.

Is that an option for you?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.