commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasmina (JIRA)" <>
Subject [jira] Commented: (JXPATH-116) Query java.util.Date from java object using JXPATH query
Date Tue, 15 Jan 2008 16:53:36 GMT


Jasmina commented on JXPATH-116:

Hi Matt,

Can you please respond to this issue.

Thanks in advance!


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

> Query java.util.Date from java object using JXPATH query
> --------------------------------------------------------
>                 Key: JXPATH-116
>                 URL:
>             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 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.

View raw message