You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Mark Chaimungkalanont (JIRA)" <ji...@apache.org> on 2006/10/31 23:45:17 UTC
[jira] Commented: (CONFIGURATION-236) Outputting
CombinedConfiguration as XML
[ http://issues.apache.org/jira/browse/CONFIGURATION-236?page=comments#action_12446102 ]
Mark Chaimungkalanont commented on CONFIGURATION-236:
-----------------------------------------------------
A further note to this. Oliver Heger mentioned on the user list
{quote}
I think it should be possible to somehow initialize a hierarchical configuration object with the data of another hierarchical configuration. This would also solve your problem.
{quote}
Which is very true. If the XMLConrfriguration object can take in another HierarchicalConfiguration object and init its values from that, I'd be laughing.
> Outputting CombinedConfiguration as XML
> ---------------------------------------
>
> Key: CONFIGURATION-236
> URL: http://issues.apache.org/jira/browse/CONFIGURATION-236
> Project: Commons Configuration
> Issue Type: New Feature
> Affects Versions: 1.3 Final
> Reporter: Mark Chaimungkalanont
>
> I have a CombinedConfiguration created from two XmlConfiguration objects. I want to output the combined XML of the CombinedConfiguration, but this doesn't currently seem possible.
> The CombinedConfiguration, through the NodeCombiner, seems to merge the hierarchy internally in any case, so I don't really see massive problem with outputting it as an XML. Logically the test would be:
> String xml = CombinedConfiguration.toXml();
> CombinedConfiguration == XmlConfiguration(xml)
> So the that outputted XML of the CombinedConfiguration would be logically the same as the CombinedConfiguration.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org