[ 
https://issues.apache.org/jira/browse/JXPATH-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552094
 ] 

Michele Vivoda commented on JXPATH-83:
--------------------------------------

I think this is a quite important issue, in my opinion there should be a way to 
force the JXPath processor to return whitespace, it doesn't matter so much if 
is not the default behavior. 

I believe the special xml:space attribute applies only to validating 
processors, and in any case its default value is already 'preserve'. 

I think also that this and maybe other issues could be solved adding a generic 
configuration mechanism with properties, like for a SAX parser.

> 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.

Reply via email to