$WBXCHNAMES - XML node child node names

Availability
$WBXCHNAMES is available for use with all WBSP commands.

Syntax
$WBXCHNAMES{XMLSource|pattern|delimiter}
$WBXCHNAMES[XMLSource|pattern|delimiter ]

Parameters
XMLSource - String value containing XML to be searched. Note that this is not an URL of the XML file but XML source itself.
pattern - Any valid XPath pattern (). When using square brackets in pattern use $WBFN[CHR(91)] for left and $WBFN[CHR(93)] for right square bracket, or use escape characters.
delimiter - optional paramater - contains the character that will be used to separate names of child nodes. Default value is comma (,). 

Returns
Names of the child nodes of node(s) matching XPath pattern separated by delimiter.

Example

[FormFields]
wb_command=R
<!--WB_BeginTemplate-->
<html>
<head>
    <title>XChNames</title>
</head>
<body>
$wbxchnames[$wbgeturl[xmlsample.xml]|//codes/condition]<br>
</body>
</html>

File XMLSample.xml

<?xml version="1.0" encoding="UTF-8"?>
<codes>
  <condition>
    <code>XXX</code>
    <description>XXX description</description>
    <day_icon>XXXDayIcon.png</day_icon>
    <night_icon>XXXNightIcon.png</night_icon>
  </condition>
  <condition>
    <code>YYY</code>
    <description>YYY description</description>
    <day_icon>DayYYYIcon.png</day_icon>
    <night_icon>NightYYYIcon.png</night_icon>
  </condition>
  <condition>
    <code>ZZZ</code>
    <description>ZZZ description</description>
    <day_icon>DayIconZZZ.png</day_icon>
    <night_icon>NightIconZZZ.png</night_icon>
  </condition>
</codes>

After running this example, the resulting page in browser should look like this:

code,description,day_icon,night_icon