str:split()
str:split() splits a string using a pattern string to determine where the splits should occur, returning a node-set containing the resulting strings.
In this article
Syntax
str:split(string, pattern)
Parameters
Return value
A node-set oftoken elements, each containing one token from thestring.
Example
str:split('book, phone, computer, chair', ', ')Returns a node set like:
xml
<token>book</token><token>phone</token><token>computer</token><token>chair</token>