[
https://issues.apache.org/jira/browse/JXPATH-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Benson resolved JXPATH-83.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.3
For reasons of backward compatibility it is inadvisable to change the default
behavior here. We'll call trim-by-default an application implementation
feature of JXPath. However, the XML spec refers to the special xml:space
attribute, which can be set to "preserve" to hint that whitespace should be
preserved. svn HEAD (rev. 538698) contains support for this attribute, about
which you can read more at http://www.w3.org/TR/REC-xml/#sec-white-space .
> JXpath automatically trims string values
> ----------------------------------------
>
> Key: JXPATH-83
> URL: https://issues.apache.org/jira/browse/JXPATH-83
> Project: Commons JXPath
> Issue Type: Bug
> Affects Versions: 1.2 Final
> Reporter: Wim Biesemans
> Fix For: 1.3
>
>
> When an xml contains a value with leading or trailing spaces, JXPath trims
> this value.
> example: <value> 12324 56</value> is retrieved by JXPath as : '1234 56'
> while I expect ' 1234 56'.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]