[jdom-interest] XPATH question
Sanjeev Verma [CONTRACTOR]
sanjeev.verma at Sun.Com
Thu May 22 10:36:20 PDT 2003
Hi all:
This is purely an XPATH question so others who may not be interested may please
ignore.
I have a XML document in which I need to search for presence of certain keywords
in certain tags. For example, here is a small snippet of the XML doc:
<document id="20" type="INTERNAL" relevance="QA">
<title>QA Doc</title>
<author>Jason Hunter</author>
<category level="1">QA</category>
<submitted>Wed May 07 16:48:58 PDT 2003</submitted>
<posted>Wed May 07 16:48:58 PDT 2003</posted>
<keywords>QA, testing, software endurance</keywords>
<summary>some summary...</summary>
</document>
Now, the user may want to search for the presence of a keyword in title, author,
keywords and summary. I am using XPATH to do this search, using the contains()
function of XPATH. But the problem is, this search is case sensitive. Is there a
equivalent function for case insensitive search also? What will be the best
approach for doing this?
Please advice.
Best Regards
Sanjeev Verma
More information about the jdom-interest
mailing list