Menu

#8 Allow aggregated configuration of XML files

open
nobody
5
2005-06-26
2005-06-26
No

Currently the file 'global-configuration.properties'
allows for aggregated configuration of the properties
of all the components of the system. An equivalent
method should be offered for XML configuration files.
For example if we have two components named 'foo' and
'bar' the file 'global-configuration.xml' could contain:
<global-configuration>
<foo>
<conf>
<item id="1">
<subitem id="1"/>
<subitem id="2"/>
<subitem id="3"/>
</item>
</conf>
</foo>
<bar>
<menus>
<menu name="1" ...>
<menu name="2" ...>
</menus>
</bar>
</global-configuration>

How are this contents merged with the base
configuration files of the 'foo' and 'bar' components?
The best way I can think of is to extract from the
previous file the XML fragment of each component and
then merge it with the base file using the strategy
implementend to offer the functionality requested in
RFE 1124687
(http://sourceforge.net/tracker/index.php?func=detail&aid=1124687&group_id=131552&atid=721407)

Discussion


Log in to post a comment.