Hi IJmert,

There is no solution for this issue. I wish there was!
If you really must get rid of the empty nodes the best way would be to create the XML yourself and change the function to accept a handle.

Regards,
Emil