commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <>
Subject Re: XMLConfiguration - getString truncated by comma
Date Tue, 15 Dec 2009 21:01:59 GMT
Rob Elliott schrieb:
> I call getString(key);  on my XMLConfiguration object which invokes the
> inherited AbstractConfiguration method. The string in the XML file is:
> "{1e68f760-6765-439e-8f38-94d7792ef860,1}" but getString(key)  returns
> "{1e68f760-6765-439e-8f38-94d7792ef860". I assume that the comma is the
> culprit. Is there a way to change my key so that the entire string is
> returned?

Before you load the XMLConfiguration call the 
setDelimiterParsingDisabled() method with *true* as parameter, for instance:

XMLConfiguration config = new XMLConfiguration();

You are right that the comma is interpreted as list delimiter per 
default. With the setDelimiterParsingDisabled() method you can switch 
off this behavior.


> Rob.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message