Re: SQLXML XPath data with apostrophe
- From: Martin Honnen <mahotrash@xxxxxxxx>
- Date: Wed, 13 May 2009 17:39:01 +0200
Gil wrote:
Code is in C#.
Values without apostrophes return just fine.
For example, the xpath would be something like:
"Users[@UserName='o'brien']"
If that is a C# string literal then
"Users[@UserName = \"o'brien\"]"
should do. If you need both single and double quotes inside the XPath string literal then you need concat e.g.
"Users[@UserName = concat('He said: \"o', \"'brien\")]"
--
Martin Honnen --- MVP XML
http://msmvps.com/blogs/martin_honnen/
.
- Follow-Ups:
- Re: SQLXML XPath data with apostrophe
- From: Gil
- Re: SQLXML XPath data with apostrophe
- References:
- SQLXML XPath data with apostrophe
- From: Gil
- SQLXML XPath data with apostrophe
- Prev by Date: SQLXML XPath data with apostrophe
- Next by Date: Re: SQLXML XPath data with apostrophe
- Previous by thread: SQLXML XPath data with apostrophe
- Next by thread: Re: SQLXML XPath data with apostrophe
- Index(es):
Relevant Pages
|