case-insensitive matching in xpath?
Posted
by Ethan
on Stack Overflow
See other posts from Stack Overflow
or by Ethan
Published on 2010-05-23T21:32:50Z
Indexed on
2010/05/23
21:40 UTC
Read the original article
Hit count: 194
For example, for the xml below
<CATALOG>
<CD title="Empire Burlesque"/>
<CD title="empire burlesque"/>
<CD title="EMPIRE BURLESQUE"/>
<CD title="EmPiRe BuRLeSQuE"/>
<CD title="Others"/>
<CATALOG>
How to match the first 4 records with xpath like //CD[@title='empire burlesque']
. Is there xpath function to do this? Other solutions like PHP function are also accepted.
© Stack Overflow or respective owner