PDA

View Full Version : Non case sensitive searching


~J~
05-19-2004, 01:47 PM
Hi all,

Hopefully some of you can help em with a problem that I'm losing my mind with...!

I have some javascript functions that traverse through nodes in an XML file, pulling out values that I specifiy.

The problem(s) I have are as follows...

function verifiyDistName(distName)
{
var matchedNodes = xmlDoc.selectNodes('//DistributionLists/List1/* [N="' + distName + '"]');
if (matchedNodes.length==1)
{
return true
}
}

This returns true if a value matches what I specify in the function parameter, the MAJOR problem is it's case sensitive! So searching for "Jim" will return a value, but searching for "jim" won't!

I've found the following URL (http://support.microsoft.com/default.aspx?scid=kb;EN-US;q315719) which offers some explanation, but I just can't see how to implement this, or indeed if this is the solution, into my function.

Any help would be really appreciated on this matter....


TIA

sad69
05-19-2004, 06:21 PM
Perhaps this link will help:
http://www.experts-exchange.com/Web/Web_Languages/XML/Q_20873726.html

Good luck,
Sadiq.