Jump to content

xpath collation


Guest tractis_rectis

Recommended Posts

Guest tractis_rectis

Hi, I want to compare strings in xpath as I do in sql, with a like operator. I've been reading a lot about collations. My question is are there any generic collations I can use. In case the answer is no, how do I create a collation and pass it to the xpath string functions?Thanks in advancedsample

/vendor/name[contains(text(),"Mó")]/root()

Shoud return the same as

/vendor/name[contains(text(),"Mo")]/root()<?xml version="1.0" encoding="UTF-8" standalone="no" ?><vendor type="wholesale">	<name>Mom's Kitchen</name>	<address>53 Yerman Ct.</address>	<city>Middle Town</city>	<state>MN</state>	<zipcode>55432</zipcode>	<phonenumber>763 554 9200</phonenumber>	<salesrep>  <name>Maggie Kultgen</name>  <phonenumber>763 554 9200 x12</phonenumber>	</salesrep></vendor>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...