PDA

View Full Version : XML code help



tintin
02-15-2007, 03:19 AM
I am decided to learn the XML and to try to make a gauge which plays all the sounds which we can hear during a flight, as checklits and annouces of the steawardess.

For that, you could just give me the syntax codes in XML :

to read a variable in FS (like plane speed, plane altitude, Park brake On/Off),
<Value>...</Value> ?
to play a file which corresponds in the reading of the FS variable with the dsd_xml_sound3 gauge

and how force automatically an action in FS like GearUp/Down.

If you only can write these 3 XML codes I will be very glade, and after I could continue my project.

Thanks for your help

ddawson
02-19-2007, 10:56 AM
Guy,

Open up a few of the XML gauges included with FS. You can learn a great deal about XML syntax this way.
If you are just starting out with XML, best start with simpler projects. Get a handle on switches and engine instruments before you try something as complex as you suggest.

The value syntax works something like:
<Value Minimum="0" Maximum="50">(A:Eng1 manifold pressure,inHg)</Value>

Doug