Jump to content
Sign in to follow this  
Guest RollerBall

More XML Compilation Problems

Recommended Posts

Guest RollerBall

I'm adding Comms, TaxiwayPoints and TaxiwayParking within Frequency="121.85" Type="GROUND" Name="CXTX GROUND"/> index="1" type="NORMAL" lon="-95.0599" lat="28.8924"/> index="11" lon="-95.06145" lat="28.88346" heading="340.000" radius="35.000" type="RAMP_MIL_COMBAT" name="PARKING" number="2" pushback="BOTH"/> Hope you can see what I mean without my including loads of unnecessary code.Without any of these 3 elements the file compiles but with any of the 3 in (ie they are all unacceptable individually) it will not.I'm knackered now :( and it's late here yet again so I've gotta give up for today, but does anyone have any ideas?I'd be SO grateful

Share this post


Link to post
Share on other sites
Guest SuperFlight2002

First off by you pushback both you have no /> just a > try this subnest them all kil all the excape tags except the airport and see what happens but make sure each entry has a /> and the end that should do it! Remember you must subnest the proper things within the hiechey of the bglcomp.xsd! Hope this helps!

Share this post


Link to post
Share on other sites

He's right on it... just to clarify, in properly formed XML ending a tag with " />" is the same as adding an end tag to it. So using is equivalent to this: . You can't use both at the same time or it'll throw errors when you try to compile. The difference between the two is that you'll use the syntax when there is nothing to enclose within that tag, and the something included here when there are things the tag encloses, like another nested tag. Also, in your third example:you forgot to close the tag after "XML blah" before adding the . It should read like this:Or, better yet, this (because it has no enclosures):

Share this post


Link to post
Share on other sites
Guest RollerBall

:-) Thanks very much guysI got there in the end after sleeping on it. I'd recommend it as a strategy ;-) Roger

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...