Re: XPath Expression to retrieve attribute value without case sensitivity

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hey,

Figured it out!

"SOLUTIONS/SOLUTION[translate(@id,
'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')='TESTSOLUTION']"


"AST" <autosoft@xxxxxxxxxxx@noreply.com> wrote in message
news:%2397DDo5RGHA.224@xxxxxxxxxxxxxxxxxxxxxxx
Hey,

I am struggling with how to form the XPath expression to find the value of
an attribute value without case sensitivity.

I have tried the following, but I must be missing something simple.

"SOLUTIONS/SOLUTION[@id=*[translate(text(),
'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')='TESTSOLUTION']]"

There exists an attribute id='TestSolution' on an <SOLUTION> element.

Any help is greatly appreciated.

Best regards,

Bill



.



Relevant Pages