Way to check Airport XML for errors?

Hello there,

I´ve created an airport, which worked fine for most of the time but since 3 days or so I´m not able to load it in the editor or build the package. I tried loading the xml in ADE and I´m getting an error aswell.
So atleast my conclusion is, that there seems to be something wrong with the xml file, even though I didn´t do anything different to when it worked some days ago.
Is there any way to check the xml for errors or are there maybe known problems I might look for? I don´t quite know where to start tbh, it´s just too long ;-).
Any help would be greatly appreciated.

Thanks in advance,
Tim

In developer mode, open the console window and look for errors when opening the project. Or building manually, you should get errors displayed as well.

The thing is, that is crashing to desktop. Does it store errors anywhere anyway?

Tip… XML is a (very) official and strict format. you can download several apps online that check if your file adheres to XML-rules,

This is one,

https://www.xml-buddy.com/xml-validator-download.htm

Keep in mind this check has nothing to do with your specific XML-content. But at least, you will know if there is not some tag missing, extra characters in your file, or improper string quotes, etcetera.

Another tip: check if your action really requires editing XML manually. If possible, use SDK and Developer mode in the game. You won’t actually need to change XML files.

Thank you for your suggestions!
I actually figured out what went wrong: MSFS seems to have a problem with many duplicated objects!
The last thing I worked on was custom markings, where I duplicated the aprons and gave them a new image texture.
But there seems to be some kind of limit of doing that and if you go further, the project will fail top load/ build. Seems like a very stupid issue, but atleast I now know about it.

Just had the same problem.

There’s no limit with copying. The problem lies in the “display names” you can now give your elements. When copying a “(copy)” is automatically added to the name - even if it was unnamed before. If you chain-copy your element the name eventually becomes so long ("(copy) (copy) (copy)…"), that the sim can’t load the xml anymore.

Just open the xml in a text-editor and search for “(copy)”. You can delete the whole attribute or just shorten the string.

Bug report filed.

1 Like