Availability
$WBXPATH is available for use with all WBSP commands.
Syntax
$WBXPATH{XMLSource|pattern|Namespaces}
$WBXPATH[XMLSource|pattern|Namespaces]
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
.
Namespaces - optional parameter containing XML
namespace(s) in form nsID=nsURI.
Returns
Value(s) of node(s)
matching XPath pattern
.
Example
File
XMLSample.xml
After running this example, the resulting page in browser should look like this: