Query java.util.Date from java object using JXPATH query
--------------------------------------------------------
Key: JXPATH-116
URL: https://issues.apache.org/jira/browse/JXPATH-116
Project: Commons JXPath
Issue Type: Bug
Environment: Java
Reporter: Jasmina
I am using JXPATH queries to queru Java Objects in memory and filter them.
My client selects adate range viz. start date and end date and the middle tier
stores these dates as java.util.date in a java object.
Now I am trying to write a JXPATH query that would basically query this java
object for a range of dates.
I have a query like:
/wirelessDevices[marketData/enteredMarketDate >= xs:date:("2008-01-01") and
marketData/enteredMarketDate <= xs:date:("2008-01-14") ]
This gives me an error Invalid XPATH.
Even if I chnage it to
/wirelessDevices[marketData/enteredMarketDate >= "2008-01-01" and
marketData/enteredMarketDate <= "2008-01-14") ]
I get the same error.
I am really confused how to query on java.util.dates using JXPATH.
May be this is a bug. I could not find such a reference in the documentation.
Kindly let me know.
Thanks
Jasmina
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.