[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] Resolved: (CONFIGURATION-335) XMLConfiguration: Can't
From:       "Oliver Heger (JIRA)" <jira () apache ! org>
Date:       2008-11-30 21:14:44
Message-ID: 754966106.1228079684309.JavaMail.jira () brutus
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/CONFIGURATION-335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Oliver Heger resolved CONFIGURATION-335.
----------------------------------------

    Resolution: Fixed
      Assignee: Oliver Heger

XMLConfiguration now has a new property {{attributeSplittingDisabled}}. If set to \
*true*, the values of attributes are stored in exactly the way as they are returned \
by the XML parser, without further modification.

Note that this property must be set *before* the configuration is loaded. So the \
following pattern has to be used:

{code}
XMLConfiguration config = new XMLConfiguration();
config.setAttributeSplittingDisabled(true);
config.setFile(myConfigFile);
config.load();
{code}

This is analogous to the {{delimiterParsingDisabled}} property of \
{{AbstractConfiguration}}.

> 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
> Assignee: Oliver Heger
> Fix For: 1.6
> 
> 
> 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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic