• 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.

XML files

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi Jeff,

Which files from the XML folder does SODE read?

I had an issue with duplicate objects while testing some things and I got the impression that the backup file made by my text editor (with the extension xml~) was also still read and processed. Could that be the case?
 
Messages
544
Country
germany
Hi Arno,
made some tests and get the same result. Every file with name.xmlxxxxxxxx
is read and processed. What is behind the .xml really doesn´t matter.
Jeff should add that to the list for one of the next versions I think.
 
Messages
611
Country
switzerland
Thanks for the report. I will check that in the code, although I'm sure I put an xml filter in the search string. Perhaps there are some other flags I missed in the Win32-API call...
 
Messages
7,450
Country
us-illinois
Hello:

A quick question on this (IMHO) related topic, if I may:

In *.XML files created / edited / used with SODE, are any "UTF" and/or "Byte Order Mark" criteria required in one's XML file format ?


FYI: That question regarding XML requirements for the MSFS SDK came to mind as I was reading this thread:

http://www.fsdeveloper.com/forum/th...togen-configuration.428760/page-2#post-678974


Thanks in advance for any clarification on this; and many thanks for making SODE available to the FS Developer Community ! :)

GaryGB
 
Last edited:
Messages
544
Country
germany
Hi Gary,
I didn´t invest too much in the coding but edit the files with notepad++
That says "ANSI as UTF-8", so that AFAIK means, it is UTF-8 coding but no BOM.
If you use notepad++ in default-mode (coding: UTF-8 no BOM) SODE should read the files without problems.
Jörg
 
Messages
611
Country
switzerland
I also use notepad++ using UTF-8 no BOM and have no issues. The XML parser I use doesn't impose any special criteria I suppose.

The bug concerning the inclusion of incorrect file extensions is fixed. The root was the WinAPI call, that included also shortnames of the file e.g. "ABCDE~.XML" of a file "ABCDEFGH.XML123".
 
Last edited:
Messages
7,450
Country
us-illinois
Thanks for the replies; I look forward to testing the next version of these files when available. :)


[EDITED]

BTW: IIUC, one may prefer to use "NotePad++" (aka "NotePad plus-plus" or "NPP") to ensure output of FSX SDK compatible XML files; readers interested in using this freeware editor for text, XML, etc. may get it here:

http://notepad-plus-plus.org/



PS: I see that the default NotePad++ titlebar designation of "ANSI as UTF-8" was regarded as a 'bug' due to potential mis-interpretation as to what file format might result; IIUC this was fixed (...but not documented ?) in a May of 2014 bug-fix update.

A "eXtensible Markup Language (*.XML)" output file type is now available in the NotePad++ 'Save As Type' pick list. :idea:

http://stackoverflow.com/questions/21977623/what-is-the-meaning-of-ansi-as-utf-8-in-notepad

http://sourceforge.net/p/notepad-plus/bugs/4095/

http://sourceforge.net/p/notepad-plus/patches/571/


By default NotePad++ auto-updates itself online every startup; it is IMHO a good idea to allow this process to run. ;)


PPS: A concurrent related discussion on UTF-8 versus UTF-16 and BOM with regard to XML files and FSX SDK compatibility:

http://www.fsdeveloper.com/forum/th...togen-configuration.428760/page-2#post-679028

[END_EDIT]


GaryGB
 
Last edited:
Messages
757
Country
netherlands
Shameless plug: Although at work I use Notepad++ as a company wide standard tool, I personally recommend PSpad.

But all in all... I think for xml, Visual Studio works best. Strange as it may seem.

Sent from my Nexus 10 using Tapatalk
 
Top