I have a question about the Flightgear xml config system and doing
"includes". This is an arbitrary example, but let's say I have an xml
config file called "main.xml":
<PropertyList>
<config>
<weight-and-balance include="passengers.xml" />
</config>
</PropertyList>
The passenger.xml file might look like the following:
<PropertyList>
<passenger1-kg>60</passenger1-kg>
<passenger2-kg>60</passenger2-kg>
<passenger2-kg>60</passenger2-kg>
<passenger2-kg>60</passenger2-kg>
</PropertyList>
In the property tree after this loads I will have:
/config/weight-and-balance/passenger1-kg = 60
/config/weight-and-balance/passenger2-kg = 60
/config/weight-and-balance/passenger3-kg = 60
/config/weight-and-balance/passenger4-kg = 60
Now this is an arbitrary example, but what I want to do in my main.xml is
override some of the default values in passenger.xml. Just imagine I am
including a much more complicated config file with a lot of standard
values, but maybe I want to override a tcp port, or set a enable/disable
flag and do that from the main.xml level, and not touch the included file.
This included file may get included on a number of systems and I may want
to set specific values for each installation, rather than create a myriad
of slightly different copies of a bunch of different included files.
So for example, on some flight maybe I only have 3 passengers. I weigh
them and they are 65 kg, 55 kg, and 58 kg (and the 4th would then be 0 kg.)
I don't want to touch the passenger.xml file, but I want to override the
default values in my main.xml file after (before?) including the file.
Is there a way to "include" a sub xml file, but override some of the
default values that are set in the included xml file?
Thanks,
Curt.
--
Curtis Olson:
http://www.atiak.com - http://aem.umn.edu/~uav/
http://www.flightgear.org - http://gallinazo.flightgear.org
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel