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

Oliver Heger commented on CONFIGURATION-335:
--------------------------------------------

I think your request is not in line with the XML specification. Have a look at 
http://www.w3.org/TR/REC-xml/#AVNormalize where the concept of attribute 
normalization is defined.

What you can do is using the content of an element instead of an attribute. 
Recently support for the xml:space attribute was added to XMLConfiguration (see 
CONFIGURATION-307). If this attribute is set on an element, whitespace in its 
content will be preserved. However, the current version 1.5 does not contain 
this feature yet.

> XMLConfiguration: Can't disable attribute splitting 
> ----------------------------------------------------
>
>                 Key: CONFIGURATION-335
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-335
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Format
>    Affects Versions: 1.5
>            Reporter: Sergey Vladimirov
>
> My XML configuration has the following attribute:
> <some-element some-attribute="&#x0A;&#x0D;" />
> But XML Configuration is trying to split this string and trims it after 
> splitting. I don't need this behaviour, but setting 
> setDelimiterParsingDisabled() just changing delimeter to "|" and not disables 
> attribute trimming.
> Need either to disable trimming/splitting if setDelimiterParsingDisabled() is 
> set to TRUE (incompatible change), or add something like 
> setParseAttributesAsIs() that will prevent attributes to be trimmed and 
> splitted

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