I took a quick peek at the SAXPath code, and it is using int instead of long. So it is limited by the type. The XPathHandler's interface uses number(int v) and number(double v). This is not good news for everyone out there that has implemented on top of this. However, two possibilities come to mind.

1) You submit a bug to SAXPath folks via the saxpath.sourceforge.net site (go there for instructions). They will probably say something like this should be an easy change and realize it may impact the world. I believe the interface can change from a number(int x) to number(long x) with little impact to the implementation. But everyone that implemented a XPath parser (not sure who that would be besides Jaxen) would have to change their implementations to use number(long x) as well. This would probably forse a major version release (like SAXPath 1.1 or 2.0).

2) Convert your expressions from a long to a double and store them with 100.0 notation. This will force number(double x) to be used and should give you the percision you need. I know that may not be acceptable for the XML document you are processing, but at least it may be a work around.

Something like:
 String xpExpr="/results/[EMAIL PROTECTED] >1044226800000.0]";

For data looking like:
<snapshot Date="2003-03-21 00:00"
          msDate="1048201200000.0"
          TimePd="Total">

Best wishes,
Dave


--


+------------------------------------------------------------+
| David Lucas                        mailto:[EMAIL PROTECTED]  |
| Lucas Software Engineering, Inc.   (740) 964-6248 Voice    |
| Unix,Java,C++,CORBA,XML,EJB        (614) 668-4020 Mobile   |
| Middleware,Frameworks              (888) 866-4728 Fax/Msg  |
+------------------------------------------------------------+
| GPS Location:  40.0150 deg Lat,  -82.6378 deg Long         |
| IMHC: "Jesus Christ is the way, the truth, and the life."  |
| IMHC: "I know where I am; I know where I'm going."    <><  |
+------------------------------------------------------------+

Notes: PGP Key Block=http://www.lse.com/~ddlucas/pgpblock.txt
IMHO="in my humble opinion" IMHC="in my humble conviction"
All trademarks above are those of their respective owners.




------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to