I have a datawindow with some data, and have a XML export template defined. Some values in mentioned datawindow are null or empty, Is it possible to hide empty elements in export XML?
Example:
Datawindow:
name | surname |
---|---|
John | Smith |
Marry | |
Jane | Doe |
XML looks like this:
<root> <row><name>John</name><surname>Smith</surname></row> <row><name>Marry</name><surname/></row> <row><name>Jane</name><surname>Doe</surname></row></root>
Is it possible to remove the <surname/> element, so the result looks like this:
<root> <row><name>John</name><surname>Smith</surname></row> <row><name>Marry</name></row> <row><name>Jane</name><surname>Doe</surname></row></root>
I am using PowerBuilder 11.5.1 Build 5097, could not find a solution in documentation, but maybe I am missing something.