Hi All,

I would like to know if there is any documentation on the XML file format 
used within FlightGear. I find that the SimGear API readProperties is what 
is used to parse an XML file but i would like to know if there is standard 
format which must be adhered to when using this API.

All the XML files in FlightGear seem to include <PropertyList> as the first 
node. Is this node name mandatory or can the name be anything else?

The props_test executable in SimGear/source/simgear/props outputs the 
following -

<PropertyList>
  <foo>
    <bar type="double">100.000000</bar>
    <bar n="1" type="double">200.000000</bar>
    <bar n="2" type="double">300.000000</bar>
    <bar n="3" type="double">400.000000</bar>
  </foo>
  <hack>
    <bar type="double">100.000000</bar>
    <bar n="3" type="double">200.000000</bar>
    <bar n="1" type="double">300.000000</bar>
    <bar n="2" type="double">400.000000</bar>
  </hack>
</PropertyList>

This is the generated XML but how does one read the attributes present 
within the angled brackets? I am referring to the information such as "bar 
n="1" type="double"".
-- 
Cheers!
Kitts


_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to