Is there any shorter way to generate xml elements using Apache Velocity, with elements with self closing tags if the value is null or empty.
However this can be achieved by putting - #if #else #end. but I need some shorter way to do this as I need to use it multiple places in template.
#if( $stu.libno )
<libno>$stu.libno</libno>
#else
<libno />
#end