Thanks Oliver.
Regarding the Configuration API, is it possible to replace not just
values but keys, too? For example, could I replace
<ReplaceMe id="4"/>
with
<NewKey>
<NewChildKey1>
<NewChildKey2>Some Value</NewChildKey2>
</NewChildKey1>
</NewKey>
If so, can you suggest what class to look at first (for accomplishing
this)?
Thanks,
Greg
On 11/14/2016 04:27 PM, Oliver Heger wrote:
Hi Greg,
Am 14.11.2016 um 19:01 schrieb Greg Torrance:
I hope I'm not asking too many questions...
I wonder if it is possible to determine the character/byte position of a
particular key in a configuration file?
No, the original position from where data is read is not stored in the
resulting configuration.
My intent is to do a pre-pass of an XML configuration file in which certain configuration
keys/values are replaced by other keys/values. Once that is done the file will be
reloaded. I realize this is possible outside of Commons Configuration, but I was
wondering if there is a "hook" in the tool that might help simplify the process.
But wouldn't it be easier to do this with the Configuration API? Load
the configuration, iterate over its keys, replace data as appropriate
and save the result?
Oliver
Thanks,
Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org