I know this is off topic, but XML *is* used quite a bit in FlightGear. Maybe this question is aimed at David Megginson, bit I would like to hear other opinions as well.

My end goal is to use XML to define the configuration files for a series of applications. The first application may have the most complicated configuration file. I need the file to contain type and instance declarations. Some of the type information is easy to define:

<position>
<latitude type="double"></latitude>
<longitude type="double"></longitude>
<altitude type="double"></altitude>
</position>

<attitude>
<pitch type="double"></pitch>
<roll type="double"></roll>
<yaw type="double"></yaw>
</attitude>

However, I would like to take these type definitions and use them to build larger types (something like)

<aircraft_reference>
<position type="position"></position>
<orientation type="attitude"></orientation>
<aircraft_reference>

or use them to define data

<aircraft_position type="position">
<latitude>42.032</latitude>
<longitude>-91.642</longitude>
<altitude>940.0</altitude>
</aircraft_position>

The other applications will have a very flat configuration file definition. No nested types, mostly key/value pairs.

I *think* that XMl may be a solution to my problem, but I don't have the experience that this group has. In the 30 seconds, or so, of free time that I have each day, I am reading through the O'Reilly book "Python and XML" (it is easier for me to do new things like this under python).

Any recommendations? This is not an immediate need since I have a temporary work around for my type definition problem, but I would like a better long-term solution.

Thanks,

Jonathan Polley

p.s., I know my XML examples are wrong, I am trying to give the flavor of why I am trying to do.

p.p.s., David, were you aware that http://www.saxproject.org/ has expired?


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to