• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX XML Syntax Question

To add to this:
XML has also 50 local vars you can use to temporarily store/read values.
Which you read with e.g. l20 (l0 - l49) and write with e.g. s20 or sp20.

The scope of these vars is: within one schedule/cycle of one gauge.

Rob
 
To add to this even further:

L:Var and G:Vars can hold numeric data only, not string. The local vars (a.k.a. storage registers) described by Rob, above, can hold both numeric and string data.

Additionally, Tom Aguilo authored an XML add-on module that contains a class named XMLVARS which enables user-created variables that can store both numeric and string data and provide array-style manipulation of data which is quite useful. His documentation provides more information.

Attached is an "Oldie but Goodie" tutorial from the great Arne Bartels (circa 2002) that provides a bit more information. It also brings up the topic of units that opens another dimension to variables - the internal ability of F.S. to convert units. The FSDeveloper wiki on "How FS Handles Units" in the Panel and Gauges section is worth a read.

Regarding your question,

"Has XML, or at least the type of XML used in flight simulation, evolved in kind of an ad hoc manner so the type of detailed syntax documentation I'm looking for doesn't exist as it does for other computer languages, or is it I'm just not looking/searching in the right places?"

my opinion is that it has not so much evolved in an ad hoc manner, rather, it appears simply that Microsoft never regarded exhaustive XML documentation as a priority; only a fraction of F.S. customers get into gauge development and then those that focus on XML are by and large hobbyists. No market in that. What Microsoft did publish on the other hand, linked by Bjoern in #15, is quite useful after one gets comfortable with XML.

For tips on proper use of things like tags <Value>, <Script> and formatting such as the nature of this thread, in addition to Bjoern's important advice to study existing XML gauges, keep subscribed to this forum and watch for input from the few people that truly understand the construction of XML, in particular, Tom Aguilo.

Bob
 

Attachments

my opinion is that it has not so much evolved in an ad hoc manner, rather, it appears simply that Microsoft never regarded exhaustive XML documentation as a priority; only a fraction of F.S. customers get into gauge development and then those that focus on XML are by and large hobbyists. No market in that. What Microsoft did publish on the other hand, linked by Bjoern in #15, is quite useful after one gets comfortable with XML.

For tips on proper use of things like tags <Value>, <Script> and formatting such as the nature of this thread, in addition to Bjoern's important advice to study existing XML gauges, keep subscribed to this forum and watch for input from the few people that truly understand the construction of XML, in particular, Tom Aguilo.

Bob

I've certainly received a lot of generous help here (thx all !), but don't want to wear out my welcome with endless questions. I've read a number of XML tutorials that I've found, and will definitely look at the Arne Bartels document.
Thx,
Al
 
Back
Top