June 19, 201213 yr Hi, I'm in need of help. I'm trying to place VOR and NDBs around Sweden (old ones not existing today) but can't seem to do it. I tried scasm first and that generates a bgl file but when I the VOR doesn't show up in FS9. Then I tried bglcomp and a xml file that I pretty much ripped of the default scenery file containing VORs using a decompiler. That one doesn't even compile to a bgl file though. Here is the test in the file for scasm: Nav(3 4 58:28:51 15:41:03 114.00 75nm 0 TUA) And here is the xml content: <?xml version="1.0" encoding="ISO-8859-1"?> <FSData version=”9.0” xmlns:xsi='http://www.w3.org/20...Schema-instance' xsi:noNamespaceSchemaLocation="bglcomp.xsd" > <!-- Facility and scenery data goes here --> <Vor dme="TRUE" dmeOnly="FALSE" lat="58.4810" lon="15.6842" alt="60.96M" type="HIGH" frequency="114.000" range="361237.0M" magvar="3.5" region="ES" ident="TUA" name="TUNA" dme="TRUE"> </Vor> <Ndb lat="58.6095" lon="16.1032" alt="74.98M" type="H" frequency="0412.00" range="138937.0M" magvar="-1.89999389648438" region="ES" ident="LM" name="BRAVALLA"> </Ndb> </FSData> Anyone that can spot what I am doing wrong?
June 19, 201213 yr There are several apparent errors in the XML including what seem to be invalid quotes around the 9.0 and a duplicated property dme=true. This code seems to compile fine: <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Created by Scenery Design Engine (SDE) on 18/04/2012 --> <FSData version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bglcomp.xsd"> <!-- Facility and scenery data goes here --> <Vor dme="TRUE" dmeOnly="FALSE" lat="58.4810" lon="15.6842" alt="60.96M" type="HIGH" frequency="114.000" range="361237.0M" magvar="3.5" region="ES" ident="TUA" name="TUNA"/> <Ndb lat="58.6095" lon="16.1032" alt="74.98M" type="H" frequency="0412.00" range="138937.0M" magvar="-1.89999389648438" region="ES" ident="LM" name="BRAVALLA"> </Ndb> </FSData> If you are not using a helper when compiling so that you can see the errors then you might want to get one. CompilerHelper is available from www.fsdeveloper.com or my tool Xml2Bgl. The attachment shows the output related to the first error. Jon ------- Microsoft Flight Sim MVP Airport Design Editor FSDeveloper.com
June 19, 201213 yr Author Hi Jon! Thanks for your tips, I tried compilehelper with the above code and got the following response: Parsing document: tuna.xml ERROR C2033: XML Parse Error (line, column, error) ERROR: 6, 47, The attribute '{http://www.w3.org/20...Schema-instance}noNamespaceSchemaLocation''>http://www.w3.org/20...Schema-instance}noNamespaceSchemaLocation' on this element is not defined in the DTD/Schema. ERROR C2309: is NOT a valid token! ERROR C2028: Invalid attribute! () ERROR C2472: Invalid attribute! ERROR: ERROR: http://www.w3.org/20...Schema-instance ERROR C2032: XML Parse Error! Element tree follows: ERROR: <FSData ERROR: version = 9.0 ERROR: > ERROR: ERROR: Schema errors detected, compilation failed! Parse complete! By the way, is there a way to use Airport Design Editor to place VOR without having to create an airport?
June 20, 201213 yr looks like a typo. Use exactly this: <?xml version="1.0" encoding="ISO-8859-1"?> <FSData version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bglcomp.xsd"> </FSData> and put your VOR or whatever else nested inside scott s. .
June 20, 201213 yr There are several apparent errors in the XML including what seem to be invalid quotes around the 9.0 and a duplicated property dme=true. This code seems to compile fine: It might if it had been surrounded by "Code" tags.
Create an account or sign in to comment