• 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 question - Help please

Messages
203
Country
us-newyork
Hi,
For some reason when opening any .xml file I see the contents differently with this message on top:

"This XML file does not appear to have any style information associated with it."

In the past my XML files always showed full contents with color codes. The file still has .xml sintax but is different.

Any help appreciated.
Many Thanks
 
Any aplication I open it with now gives me this message on top (see picture).
No big deal, I can still alter the xml in notepad but am curious why I am now getting this note?
 

Attachments

  • XML.png
    XML.png
    43.8 KB · Views: 342
Any aplication I open it with now gives me this message on top (see picture).
No big deal, I can still alter the xml in notepad but am curious why I am now getting this note?
Your document does not have the style header.
"<?xml version="1.0" encoding="utf-8"?>"
 
Hi Rick,
Thanks but I am not questioning the contents of XML file, got thousands.
What I question is the different display these files are now in with the
top line:
"This XML file does not appear to have any style information associated with it. "
Best Regards.
 
Please just copy/paste the style header and try it again.
 
Gents, I am really sorry for apparent lack of my knowledge but I tried to copy/paste the suggested style header in different ways to no avail.
I could not copy it to the .xml (showing in the my first post picture) - the display is not exceppting the cursor-, and when copying/pasting it to .txt and then going back to .xml it did not show any difference.
Also tried to find a field to copy it someplace to file properties to no avail.
Abviously am doing something wrong?
Please let me know.
Best Regards,
 
Ok try this and then compare to what you have.

XML:
<?xml version="1.0" encoding="utf-8" ?>

<Gauge Name="Leveler switch" Version="1.0">
   <Element>
     <Select>
       <Value>(>K:AP_WING_LEVELER_OFF, bool)</Value>
       <Failures>
         <SYSTEM_ELECTRICAL_PANELS Action="0"/>
       </Failures>
       <Case Value="0">
         <Image Name="ap_off.bmp"/>
       </Case>
       <Case Value="1">
         <Image Name="ap_on.bmp"/>
       </Case>
     </Select>
   </Element>
 <Mouse>
     <Help ID="Peter"/>
     <Tooltip ID="Peter"/>
   <Area>
       <Cursor Type="Hand"/>
       <Click Event="Peter"/>
     </Area>
 </Mouse>
</Gauge>
 

Attachments

Hi Rick
Mainly MANY THANKS for your help but am still on the same boat:

1/ Have downloaded your zip and your xml file still opens without "<?xml version="1.0" encoding="utf-8" ?>" note on top
and with the top note "This XML file does not appear to have any style information associated with it. The document tree is shown below." (See picture)

2/ Have changed your file extension to .txt and interestingly could see the "<?xml version="1.0" encoding="utf-8" ?>" on top. (See picture)

3/ Then have changed the extension back to .xml, and same as 1 above?

So maybe my laptop is acting up? (Got W10 with the latest update)?
Or, I am doing something wrong?
 

Attachments

  • Screenshot (1724).png
    Screenshot (1724).png
    146.7 KB · Views: 337
  • XML.png
    XML.png
    41.9 KB · Views: 361
It absolutely opens with the header, here is an image from my desktop, opening the Zip.

Screenshot 2023-11-01 040414.png


Notepad as a text editor cannot save to XML, I use Notepad++. As to your image, that appears to be Adobe Acrobat, or something similar, I'm not familiar with that application. By the way, when I reformatted your XML document from that image using text recognition software, I noticed that there were "down arrows," that appeared to hide or unhide sub elements in the XML tree. Those are not standard XML characters and the text recognition software converted them to "v's," which I removed. They can't be included in a working MSFS XML document.
 
They are opening the .xml file in Edge, not something I would use to view an .xml file myself... but each to their own. I suspect that is the reason it's complaining.
 
Hi Gents and again many thanks for your input,
I tried all suggested applications showing in properties to no avail.
Somehow I am reaffirmed that this probably happened with the latest W10 update and no big deal, I can stil change/make xml files in note pad and change it to xml extension.
I just looks differently and fortunately also highlights any potential mistakes in the file.
So will live with it.
Cheers,

 
They are opening the .xml file in Edge, not something I would use to view an .xml file myself... but each to their own. I suspect that is the reason it's complaining.
The whole thing seemed a bit edgy so thanks for explaining!
 
May I suggest a proper text editor such as Notepad++

This will format and highlight XML better than the Windows Notepad will and saves you having to load it into a web browser. Plus it can load multiple files into tabs.

Image1.jpg
 
Back
Top