Remove the elements which are null from the array.
 

1 array.clearNulls

<array.clearNulls name='name'>
    <array /> ?
</array.clearNulls>
Example

Remove all null elements from an array.

Copy
<xsql-script name='array_clearNulls'>
    <body>
        <array name='cities'>
            <string>Barcelona</string>
            <string>Paris</string>
            <null />
            <string>Roma</string>
            <null />
        </array>

        <!-- size: 5 -->
        <println>size: <array.size name='cities' /></println>

        <array.clearNulls name='cities' />

        <!-- size: 3 -->
        <println>size: <array.size name='cities' /></println>

    </body>
</xsql-script>

The result is:

Copy
size: 5
size: 3