Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

looking for a little XML coding help...

Featured Replies

Calling on coding gurus!!! I've looked at this stuff until my head started hurting and I am stuck. I downloaded Martyn Becker's Autoenvironment utility to use the autocabin piece of it and I wanted to customize some of the triggers that cause some of the announcements to play. I tried contacting Martyn but I haven't heard back from him yet. I want to change the triggers for these three events: 1.) Doors to automatic2.) Safety Demo3.) Arrival announcementIn the original program (see below - original code) these are triggered as follows:1.) Doors to automatic

Hey!Seems you haven't closed your IF Staments you have two IFs so you got to closed them whit two "}" also.Javier

  • Author

Thanks Tom and Javier for your responses. I made some progress on this last night and now have been able to get two of the three changes I want working. I don't know anything about programming so I try to figure out the logic and then I am cutting and pasting the actual code. I changed the triggers for some of the earlier events to ensure they would happen and that seems to have worked. For eg the second event "MUZAK" the trigger was speed greater than 1kt, since I was sitting at the gate while testing this event wasn't occuring, I deleted the associated sound because I don't want this sound so I didn't realize it wasn't being triggered. I think there are some instructions in the code to make some events happen only if prior events have occured, so I changed the MUZAK trigger to Eng 1 N1 greater than 15%, and now Doors to Automatic and the Safety Demo work as I want. I just have to figure out the arrival announcement now.I do have another question: I opened the original xml file with the xml editor and it opened into an internet explorer window, I then realized I couldn't do any editing in that window, so I copied all the data to a word document and that's where I do my editing. When I get done editing I save the document as XML type. What is confusing me is that sometimes when I save the file as an xml document it will be a small 5kb size, and sometimes the same document with the same data will be 237kb, the bigger document never works in FS, the program only seems to like the smaller sized xml document. I can't figure out what I need to do to consistently convert my word docs to the smaller size xml document. Thanks again for the help!!!

Thanks Tom and Javier for your responses. I made some progress on this last night and now have been able to get two of the three changes I want working. I don't know anything about programming so I try to figure out the logic and then I am cutting and pasting the actual code. I changed the triggers for some of the earlier events to ensure they would happen and that seems to have worked. For eg the second event "MUZAK" the trigger was speed greater than 1kt, since I was sitting at the gate while testing this event wasn't occuring, I deleted the associated sound because I don't want this sound so I didn't realize it wasn't being triggered. I think there are some instructions in the code to make some events happen only if prior events have occured, so I changed the MUZAK trigger to Eng 1 N1 greater than 15%, and now Doors to Automatic and the Safety Demo work as I want. I just have to figure out the arrival announcement now.I do have another question: I opened the original xml file with the xml editor and it opened into an internet explorer window, I then realized I couldn't do any editing in that window, so I copied all the data to a word document and that's where I do my editing. When I get done editing I save the document as XML type. What is confusing me is that sometimes when I save the file as an xml document it will be a small 5kb size, and sometimes the same document with the same data will be 237kb, the bigger document never works in FS, the program only seems to like the smaller sized xml document. I can't figure out what I need to do to consistently convert my word docs to the smaller size xml document. Thanks again for the help!!!
I suggest that you don't use Word for this purpose because on saving it n introduces unwanted formatting information. Use Notepad instead which avoids this problem.

Gerry Howard

  • Author
I suggest that you don't use Word for this purpose because on saving it n introduces unwanted formatting information. Use Notepad instead which avoids this problem.
Thnks for the response!!After using Notepad how do I save it as an xml file? I don't see an option to save as *.xml

Hey there!Don't use SAVE AS use just SAVE to not change the file extention nor add any format to the code text.Javier

Thnks for the response!!After using Notepad how do I save it as an xml file? I don't see an option to save as *.xml
Use Save As and enter the File Name as xxxx.xmlIt is good practice to use Save As with a different name to ensure you don't overwrite the original file erroneously.

Gerry Howard

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.