Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

DataWindow export XML: how to remove empty elements

$
0
0

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:

 

namesurname
JohnSmith
Marry
JaneDoe

 

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.


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>