XML files do not open correctly with XML Notepad

Version: MSFS 2024 SDK CORE 0.9.2

Frequency: Frequently/Consistently

Severity: Low

Context: …\MSFS 2024 SDK \ModelBehaviorDefs.…

Bug description:
I don’t know how much it can influence the development of aircraft for MSFS2024, as I am not a developer of these and therefore, I apologize in advance if I am off topic.
Briefly, using XML Notepad, an application that allows you to open and edit .XML ifles; I noticed that some of these (the list is long) have writing errors in conflict with the XML language.
I am not aware if this is the cause of possible conflicts or anomalies in the design and development of aircraft for MSFS.

Regards

Repro steps:
Open with XML Notepad …

Attachments:







Private attachments: Send a PM to @PrivateContent with the link to this topic and the link to download your content

I think this software cannot handle the ## placeholders in the element tags. I recommend using Visual Studio Code to edit files. The XML extension in VS Code handles model behaviours okay.

Thanks for the clarification… I’ll try with Visual Studio Code.
Regards

I use Notepad++ that I consider the best free text editor available (with tons of free addins) managing perfectly those XML files

1 Like

I agree with @tracernz and @erasam that to open and edit these .XML files the software mentioned above are very good.

My doubt, however, is another. Do these .XML files work correctly? Since:

"The # character is not allowed in XML tag or attribute names. XML has a specific set of rules for names (names of elements, attributes, and other entities):

Beginning of name: Must start with a letter or an underscore _.
Subsequent characters: After the first character, you can use letters, digits, hyphens -, periods ., colons :, and underscores _.
Disallowed characters: Special symbols such as #, @, !, spaces, and many other special characters are not allowed.
If you want to use the # character as part of an attribute value or within the text of an element, you can do so, but not as part of the tag or attribute name itself.

For example:

xml
Copy code

This is a text value with #hash.

However, a name like <#element> or <element attribute#=“value”> would result in an XML error."

To my knowledge those are just placeholder to be substituted with the correct value at runtime (as mostly all the standard templates are defined)

1 Like