[ 
https://issues.apache.org/jira/browse/CONFIGURATION-545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13666604#comment-13666604
 ] 

Oliver Heger commented on CONFIGURATION-545:
--------------------------------------------

Try calling the {{setAttributeSplittingDisabled()}} method. It also has 
comprehensive Javadocs with hints how it should be used.

Note that in version 2.0 of Commons Configuration (which is currently under 
development) the feature of splitting attribute values was removed because of 
the troubles it caused.
                
> if attribute value contains , (comma), it returns arrayList instead of string
> -----------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-545
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-545
>             Project: Commons Configuration
>          Issue Type: Bug
>            Reporter: Raghunathan Semburakkiannan
>
> Hi 
> I've an xml element with an attribute 'name', it's value contains comma. If I 
> access this attribute it is returning List instead of String. Can you guys 
> fix it?
> {code}
> Method:
> txnConfig.getProperty("stream(1)[@name]")
> <someRoot>
> <stream
>       name="some Release REL12973,CC#239487"
>       type="snapshot"
>       time="1342793128"
>       startTime="1342793128"/>
> ...
> ...
> <someRoot>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to