在XPath查询中使用“小写” [英] Using 'lower-case' in XPath Query

查看:102
本文介绍了在XPath查询中使用“小写”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我不确定这是否是正确的论坛,但无论如何我都会尝试并希望最好!

I'm not sure if this is the right forum but I'll try anyway and hope for the best!

我在使用'cotains'XPath字符串函数时遇到问题,问题是它区分大小写。我想过使用'小写'XPath字符串函数来比较转换为小写的属性值与搜索模式,后者也转换为小写。问题是我不知道我需要做什么才能在我的XPath查询中使用小写函数。例如:

I'm having a problem using the 'cotains' XPath string-function and the problem is that it is case-sensitive. I thought of using the 'lower-case' XPath stringfunction in order to compare attribute values converted to lower case against a search pattern which is also converted to lower-case. The problem is that I don't know what I need to do in order to use the lower-case function from within my XPath query. An example:

而不是使用它:
// WORDSET [contains(./PHRASE/@text ,'string' )]

Instead of using this:
//WORDSET[contains(./PHRASE/@text, 'string')]

我想这样做:
// WORDSET [包含(小写字母( ./ PHRASE / @文字),字符串)]

这可能吗?如何?

感谢您的帮助!
/ Peter

Thanks for your help!
/Peter 

推荐答案

这不是正确的论坛,请尝试使用XML和.NET Framework( http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=38&SiteID=1

谢谢,

Elena


这篇关于在XPath查询中使用“小写”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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