- Messages
- 497
- Country

In the Current (and all past SDKs) there is an example of some Gauge XML
Where does this POSITION element come from ??
The SDK does NOT define it a a child of ELEMENT, but then gives an example of it's use as such !!
It seems to PARSER without errors when used in a gauge ( XMLDEBUG switch turned on in Prepar3d.cfg)
HOWEVER, the SPB compiler will error-out at the POSITION, but will accept the SDK Defined Child FLOATPOSITION.
I see quite a few XML gauges using "POSITION" -- what is going on here -- Does not appear to be very consistent.
FSX XML programming is tedious enough, without a decent PARSER that gives usefull Error Messages -- now there appears to be other Rules and Exceptions, that are not covered in the SDK ??
Shouldn't ALL P3D XML code BOTH pass the PARSER "AND" SPB compiler, without error. ??
----------------
Also, the ACES editor is the only Editor I have found that will NICELY format FSX XML. ( Correctly Indenting).
But why, when that nicely INDENTED XML is passed through the COMPILER, does it not remove all the UNNECESSARY TABS.
( It removes <!-- COMMENTS --> , so why not LEADING TABS (and LEADING and TRAILING Spaces) ??
Isn't one purpose of the Compiler, to make the Binary as small as possible, so it loads quicker.
Sorry -- after being in FSX XML "HELL" for the past few weeks, I am extremely Frustrated with the process of debugging this XML in the FSX environment. It's enough to drive anyone to program all gauges in C++ !!!
Geoff
Code:
<Element>
<[b]Position[/b] X="18" Y="18"/>
<MaskImage Name="ap_ahi_window.bmp">
<Axis X="61.5" Y="61.5"/>
</MaskImage>
<Image Name="ap_ahi_dial.bmp" PointsTo="North">
<Axis X="59" Y="59"/>
</Image>
<Rotate>
<Value Minimum="-90" Maximum="90">(A:Attitude indicator bank degrees:1,degrees) -90 max 90 min</Value>
</Rotate>
</Element>
Where does this POSITION element come from ??
The SDK does NOT define it a a child of ELEMENT, but then gives an example of it's use as such !!
It seems to PARSER without errors when used in a gauge ( XMLDEBUG switch turned on in Prepar3d.cfg)
HOWEVER, the SPB compiler will error-out at the POSITION, but will accept the SDK Defined Child FLOATPOSITION.
I see quite a few XML gauges using "POSITION" -- what is going on here -- Does not appear to be very consistent.
FSX XML programming is tedious enough, without a decent PARSER that gives usefull Error Messages -- now there appears to be other Rules and Exceptions, that are not covered in the SDK ??
Shouldn't ALL P3D XML code BOTH pass the PARSER "AND" SPB compiler, without error. ??
----------------
Also, the ACES editor is the only Editor I have found that will NICELY format FSX XML. ( Correctly Indenting).
But why, when that nicely INDENTED XML is passed through the COMPILER, does it not remove all the UNNECESSARY TABS.
( It removes <!-- COMMENTS --> , so why not LEADING TABS (and LEADING and TRAILING Spaces) ??
Isn't one purpose of the Compiler, to make the Binary as small as possible, so it loads quicker.
Sorry -- after being in FSX XML "HELL" for the past few weeks, I am extremely Frustrated with the process of debugging this XML in the FSX environment. It's enough to drive anyone to program all gauges in C++ !!!
Geoff

