Build 2824 XML Problems

#1
Hi, Jon

My original XML file has 150 kb and it can be compiled to a bgl, using SDE or BGLcomp.exe without problems.

HTML:
ScruffyDuck Scenery Design Engine Compiling
Using FSX BglComp....

Parsing document: G:\FSX\SDE\work\APX_SBES.xml

Parse complete!
When I decompile that bgl with SDE, the XML grows to 191 kb and can't be recompiled.

HTML:
INTERNAL COMPILER ERROR:  #C2032: XML Parse Error!  Element tree follows:

ERROR: <FSData 
ERROR: 	version = 9.0
ERROR: >
ERROR: 	<Airport 
ERROR: 		country = Brazil
ERROR: 		city = Sao Pedro Da Aldeia
ERROR: 		name = Sao Pedro Da Aldeia
ERROR: 		lat = -22.8161110728979
ERROR: 		lon = -42.0919445157051
ERROR: 		alt = 18.59M
ERROR: 		magvar = 22
ERROR: 		trafficScalar = 0.7
ERROR: 		airportTestRadius = 5000.0M
ERROR: 		ident = SBES
etc, etc, etc
Could the decompiled file became corrupted?

If you want, I may send the XML code so you can reproduce the prroblem.

Regards,

José

PS:

I document all objects using one line, such as:

<!--gen_hangar_edwards_CENTRO -->

The file decompiled supress those information.

José
 
Last edited:

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#2
My original XML file has 150 kb and it can be compiled to a bgl, using SDE or BGLcomp.exe without problems.

When I decompile that bgl with SDE, the XML grows to 191 kb and can't be recompiled.

Could the decompiled file became corrupted?

If you want, I may send the XML code so you can reproduce the prroblem.
Please can you send me the XML file so that I can check what is happening?


I document all objects using one line, such as:

<!--gen_hangar_edwards_CENTRO -->

The file decompiled supress those information.
OK that is a 'feature' :eek: SDE does not read in comments in the XML. I will add that to the list.
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#4
Hi Jose

OK I have the problem. It relates to empty region tags and I mention it in the documentation. This happens quite often and I will see if I can now fix it given the original XML and that generated by SDE. That is a big help. Thank you.


I don't think the size difference in the XML is significant. Probably more to do with the way that it is formatted by SDE.

EDIT

OK there is a bug and I have found it. The program was not handling the decode of fix Regions correctly for certain ranges of letters. I think it is OK now.
 
Last edited:
#5
Hi, Jon

That is a big help. Thank you.
Don't mention it.

I don't think the size difference in the XML is significant.
So do I. I reported it only for your knowledge.

OK there is a bug and I have found it. The program was not handling the decode of fix Regions correctly for certain ranges of letters. I think it is OK now.
That's ok. Let's wait for the next build.

scruffyduck said:
SDE does not read in comments in the XML. I will add that to the list.
Please, don't forget!

Thanks for your attention,

José
 
Top