Avoiding empty tags in structtoxml
Author: tneeskens@itblockz.nl (Theo Neeskens)
Hi, I have a situation where I need to: - retrieve lots of related data in a Uniface service - create a struct using componenttostruct - create XML using structtoxml - dump the XML as a file on disk It works fine so far, but I do not want empty XML tags in the output. - Is there a way to specify a switch on componenttostruct so I do not get the empty fields in the struct? - Is there a way to specify a switch on structtoxml so I do not get the empty fields in the XML? NB: It needs to be fast, and the code needs to be kept extremely simple, so the answer "just iterate over the struct and remove them yourself" is not the answer that I am hoping for...