breakdown of config.xml
Posted: 10 Feb 2009, 14:19
Hi there,
I really wish, i could break my config.xml into tiny pieces. There are large parts which will be the same across servers and other parts which will be (slightly) different.
I wish i could do something like in the apache-configuration, where you specify another file to be included at this point (or even a whole folder using a wildcard).
This would also improve readability.
Then i could have a config like this:
and so on.
The "included"-Tag is just to keep the xml valid, i could very well live without it.
I really wish, i could break my config.xml into tiny pieces. There are large parts which will be the same across servers and other parts which will be (slightly) different.
I wish i could do something like in the apache-configuration, where you specify another file to be included at this point (or even a whole folder using a wildcard).
This would also improve readability.
Then i could have a config like this:
Code: Select all
<!-- config.xml -->
<SmartFoxConfig>
<ServerSetup>
<include file="thisMachine.xml" />
<LogMaxSize>5000000</LogMaxSize>
<!-- other general stuff -->
</ServerSetup>
<Zones>
<include file="zones/server01/*.xml" />
</Zones>
</SmartFoxConfig>Code: Select all
<!-- thisMachine.xml -->
<included>
<ServerIP>*</ServerIP>
<ServerPort>9339</ServerPort>
<AutoSendPolicyFile>true</AutoSendPolicyFile>
</included>Code: Select all
<!-- zones/server01/myzone.xml -->
<included>
<Zone name="The-Zone" maxUsers="100">
<Rooms><!-- all my stuff --></Rooms>
<Extensions><!-- even more stuff --></Extensions>
</Zone>
</included>The "included"-Tag is just to keep the xml valid, i could very well live without it.