You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Wim Biesemans (JIRA)" <ji...@apache.org> on 2007/05/16 09:06:18 UTC

[jira] Created: (JXPATH-83) JXpath automatically trims string values

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


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


[jira] Resolved: (JXPATH-83) JXpath automatically trims string values

Posted by "Matt Benson (JIRA)" <ji...@apache.org>.
     [ 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