Eugene, thanks for caring. I have an xml file and written a program which
finds strings/text into that xml file using SelectNode() & ...
As you will see there is a name like "Bob" or so many other data into the
xml file. I need to know how I can find a text or string into the xml file
regardless of what user enters. User may enter bob or Bob. I know there is a
translate finction as you said but dont know how to include it in my xpath
query which is:
//*[contains(.,"Bob")]
XML goes here:
<?xml version="1.0" encoding="ISO-8859-1"?>
<catalog>
<cd>
<title>Empire Burlesque</title>
<Params>
<BackgroundColor>#19384A</BackgroundColor>
<LinkColor>#ffffff</LinkColor>
<VisitedLinkColor>#ffffff</VisitedLinkColor>
<TextColor>#ffffff</TextColor>
<Direction>ltr</Direction>
<BackgroundImage></BackgroundImage>
<Header><table width='600' cellspacing='0' callpadding='0'
border='0' align='center'> <tr><td><img
src='images/ifilmtest.gif' alt='test' width='175'
height='62'> </td></tr></table><br><br>
</Header><Footer><table align=center border='0' Width='600'>
<tr><td width='50%'><FONT
FACE='Arial,Helvetica' Size='1' COLOR='#FFFFFF'>COPYRIGHT
<script language='javascript'>
document.write(String.fromCharCode(38));</script>copy
2000 - 2004 test Co. All rights reserved.<
/font></td> <td width='50%'
align='right'><FONT FACE='Arial,Helvetica' Size='1'
COLOR='#FFFFFF'>
Technical Problems? <a
href='http://test.ifilm.com/support_form.asp'>Contact Us, please
reference survey content
in the subject
line</a></font></td></tr>
</table></Footer><CSS>survey.css</CSS>
<MouseOverMessage></MouseOverMessage>
</Params>
<artist>Bob</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
<cd>
<title>Hide your heart</title>
<artist>Bob</artist>
<country>UK</country>
<company>CBS Records</company>
<price>9.90</price>
<year>1988</year>
</cd>
</catalog>
Thanks
C# NewBie
"Eugene Bykov [MSFT]" <eu******@online.microsoft.com> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...
Could you please provide a part of your code so that I could better
understand your problem and provide you an example based on it?
--
Thanks,
Eugene
-------------------------
This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
"C# newbie" <rs****@otxresearch.com> wrote in message
news:uJ**************@TK2MSFTNGP09.phx.gbl... Hi Eugene,
I always have used xml, wrapped into C#, how can I run it out of it
? thanks for your help
c# newbie
"Eugene Bykov [MSFT]" <eu******@online.microsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Hello,
You can try to use "translate" function to convert the string to low
or upper case before comparing. For example you could try to use
something like this:
...
<xsl:if test="translate(@name, 'ABCDEFGHIJKLMNOPSQRTUVWXYZ',
'abcdefghijklmnopsqrtuvwxyz') = 'bob'">
...
--
Thanks,
Eugene
-------------------------
This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
"C# newbie" <rs****@otxresearch.com> wrote in message
news:#J**************@TK2MSFTNGP12.phx.gbl...
>
> Hi,
>
> How can I make my query to return both "Bob" & "bob" (during search
for a > string) ?
>
> any idea?
>
> thanks
>
>