Hi, I am having problems evaluating an XPath expression that returns a date String containing hyphens using dom4j.
For example: <clients> <client id="pc1"> <forenames>F1</forenames> <surname>S1</surname> <date_of_birth>1957-10-03</date_of_birth> </client> <client id="pc2"> <forenames>F2</forenames> <surname>S2</surname> <date_of_birth>1956-08-31</date_of_birth> </client> </clients> Using the XPath: /clients/[EMAIL PROTECTED]"pc1"]/date_of_birth/text() Always evaluates to: 1957-10-03 However using this XPath: /clients/[EMAIL PROTECTED]"pc2"]/date_of_birth/text() I sometimes get either: 1956- or 1956-10- as the result. In both instances the result is always truncated immediately after a hyphen. To make matters worse the XPath is always evaluated correctly when I execute my Websphere application on a windows operating system. However, the problem seems to manifest itself when the WebSphere application is executed on a unix based AIX server. Has anyone seen anything like this before. Thanks, Derek http://www.aegon.co.uk AEGON UK plc: 90 Long Acre, London WC2E 9TF, registered in England (No. 3679296). Scottish Equitable plc: Registered office at Edinburgh Park, Edinburgh EH12 9SE, registered in Scotland (No. 144517), authorised and regulated by the Financial Services Authority. Guardian Assurance plc, Guardian Linked Life Assurance Ltd and Guardian Pensions Management Ltd: Registered office at Ballam Road, Lytham St. Annes, Lancashire FY8 4JZ, registered in England (No. 38291, 1397655 and 985480), authorised and regulated by the Financial Services Authority. Members of the AEGON Group. DISCLAIMER This message is for the addressee only. If you've received it by mistake, please send it back to the sender and delete it, and any copies of it, straightaway. We may monitor emails on our network for security purposes and to check they meet legal, regulatory and professional standards. If you get in touch with us by email, we may keep a record of your name and email address. We don't accept service of court proceedings by email, unless we've specifically agreed to this beforehand in writing. We take reasonable precautions to guard against malicious software and viruses and we recommend you do the same. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user