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