Obtain the keys of the map in an array.
1 map.keys
<map.keys name='name'>
<map /> *
</map.keys>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Name of the map. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Emap | map |
Example
Copy
<xsql-script name='map_keys_sample'> <body> <map name='a'> <item>0<string>ZERO</string></item> <item>1<string>ONE</string></item> <item>2<string>TWO</string></item> <item>3<string>THREE</string></item> </map> <println><map.keys name='a' /></println> </body> </xsql-script>
An array is obtained with the map keys.
Copy
<map.keys name='a'/>