User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the XML, XSLT and XPATH section within the Software Development category of DaniWeb, a massive community of 391,610 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,631 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our XML, XSLT and XPATH advertiser:
Views: 501 | Replies: 0
Reply
Join Date: Apr 2008
Posts: 4
Reputation: Mapper99 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Mapper99 Mapper99 is offline Offline
Newbie Poster

Case Insensitive Search - XPATH

  #1  
Jun 4th, 2008
I can't seem to get a case insensitive search to work using an XPATH query.

This code works:

$lats = $users->xpath("/users/user[contains(.,'$fullname')]/lat");

This code does not work:

$lats = $users->xpath("/users/user[contains(translate(.,'abcdefghijklmnopqrstuvwxyz'," + " 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'),'$fullname')]/lat");

Any ideas?

Thanks in advance,

Mapper
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb XML, XSLT and XPATH Marketplace
Thread Tools Display Modes

Other Threads in the XML, XSLT and XPATH Forum

All times are GMT -4. The time now is 12:16 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC