•
•
•
•
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 427,101 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,155 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: Programming Forums
Views: 650 | Replies: 0
![]() |
•
•
Join Date: Apr 2008
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb XML, XSLT and XPATH Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
adsense adult advertising biometrics blogging book business coding community copyright cult of the dead cow data development earth engine europe forum google hacking image recognition internet search legal malware marketing mcafee microsoft monetization msn news pagerank photo privacy publishing ratings revenue search search engine security seo sex software spyware support technical video video search web webmaster wiki yahoo
- Previous Thread: tell me pleasee!!
- Next Thread: open pop up window without Javascript enabled


Linear Mode