Xquery 中的标记化 [英] Tokenizing in Xquery

查看:25
本文介绍了Xquery 中的标记化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 xquery 中标记诸如 "&""?" 之类的特殊字符.当我试图对这些特殊字符进行标记化时,我无法做到这一点.你能建议我解决这个问题吗?

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?

推荐答案

您必须像在 XML 中那样对 & 符号进行转义.

You have to escape the ampersand as you do it in XML.

tokenize($string, "&")

或者,您也可以使用其 unicode 代码点:

Alternatively, you could also use its unicode codepoint:

tokenize($string, codepoints-to-string(38))

这篇关于Xquery 中的标记化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆