XPath query with incasesensitive

IncawnAwadway

New Member
I have an XML like this\[code\]<Authors><Author name='Some Author'><Book>B1</Book><Book>B2</Book><Book>B3</Book></Author></Authors>\[/code\]I want to do xpath query on this xml by using Book and display the author name, and the xpath query should be with out case sensitive.I tried to use \[code\]Author[translate(Book,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')='b1'\[/code\]But this query returns value only if i am querying with b1. if the query is with b2 or b3 it is returning null.I am doing this in java.Please help me.
 
Back
Top