commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JXPATH-83) JXpath automatically trims string values
Date Wed, 16 May 2007 20:07:16 GMT

     [ 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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message