ToXml of empty elements
Question asked by Christos Stavrou - 9/9/2021 at 10:46 AM
Answered
Hello,
 
Is it possible to tell the method ToXml to not output empty elements?
For example, instead of outputting <Cdtr/> I would like to output nothing.
Is this possible?

1 Reply

Reply to Thread
0
Liquid Support Replied
Employee Post Marked As Answer
Hi,

If you make the element optional in the XSD, it will not be written out if it is empty.

Reply to Thread