CAPTAIN SIM FORUM
Weapon for FSX >> Weapon for FSX >> CSWeapons.xml
https://www.captainsim.org/forum/csf.pl?num=1401149545

Message started by usb on May 27th, 2014 at 12:12am

Title: Re: CSWeapons.xml
Post by Markoz on Jan 9th, 2023 at 2:13am

gusher52002 wrote on Jan 8th, 2023 at 11:49pm:
Thank you for responding, fallow the step and when i go to view the saved file ,nothing show up but a blank white page in Explorer. Using windows 7 64bit

You should at least get something other than a blank white page.


gusher52002 wrote on Jan 8th, 2023 at 11:52pm:
Also there's a box at the bottom of the window that states, Encoding and its listed as ANSI

In Windows 7/8/10, it should save from Windows Notepad without any problems. I never had a problem with it (I haven't done it Win 11 yet).

I see an encoding list consisting of ANSI, UTF-16 LE, UTF-16BE, UTF-8, & UTF-8 with BOM, with UTF-8 always being the one I see when I first select Save As, and when I opened it after saving as a .XML, it looked fine. If ANSI was the default in Win 7, then that's probably what I saved it as.

My suggestion would be to create a new .TXT file (using the name of the file that you want to save you XML as), then change the file extension* from .TXT to .XML. After that, copy everything from the .TXT file that you've done all the XML coding in, and paste it in the newly created .XML file, then after that, simply select Save (not Save As), and you have your XML file.
The reason I suggest this is that with the change of the file type, once you change it to an XML file, it will automatically save with the correct encoding.


* To make the file extentions visible, you need to go to  Options (this should be somewhere on the top menu of the Folder) > View Tab > Un-Check (remove the tick from) the Hide extensions of known file types.

CAPTAIN SIM FORUM » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.