问题
How to tokenize special characters like "&" and "?" in xquery. As I'm trying to Tokenize these special characters, I'm unable to do this. Can u suggest me to clear this issue?
回答1:
You have to escape the ampersand as you do it in XML.
tokenize($string, "&")
Alternatively, you could also use its unicode codepoint:
tokenize($string, codepoints-to-string(38))
来源:https://stackoverflow.com/questions/10641546/tokenizing-in-xquery