Author Topic: Xml code - Prize suggestions  (Read 1006 times)

Waxer

  • Newbie
  • *
  • Posts: 13
    • View Profile
Xml code - Prize suggestions
« on: May 24, 2018, 02:15:33 AM »
Hi team ... i have attached the .XML file changes i made ... error message "Exception parsing file on line: 367"

Line 367 in the text is pretty close to being the end - i compared it to the original and they appear the same to me.

Any thoughts?

Is there any easier way to change the number of players paid in a tournament in increments of 10% of total field?

Thanks in advance!

regards

Shannon

mcfrojd

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Re: Xml code - Prize suggestions
« Reply #1 on: May 24, 2018, 05:54:19 AM »
Your file is missing a lot of </prizeLevel>

(you need to end every <prizeLevel minPlayers="xx" maxPlayers="xxx"> with a </prizeLevel>)

Waxer

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Xml code - Prize suggestions
« Reply #2 on: May 24, 2018, 06:55:27 AM »
Hi there - thanks for the tip! However, after making all the changes (see attached file) i had another configuration parse error: Exception parsing file on line 9 ...

there doesn't appear (to me) for anything to be different around line 9 or anywhere near it !

these codes are way out of what i would normally play with - really appreciate any further tips you could give me?


Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Xml code - Prize suggestions
« Reply #3 on: May 24, 2018, 11:10:42 AM »
Now you have too many </prizeLevel>.  :)

  <prizeLevel minPlayers="1" maxPlayers="2"> </prizeLevel>
    <prize rank="1" name="1st Place" percent="100" />
  </prizeLevel>


Should be:

  <prizeLevel minPlayers="1" maxPlayers="2">
    <prize rank="1" name="1st Place" percent="100" />
  </prizeLevel>


Think of it this way: each prize level can contain one or more prizes.  <prizeLevel> is the start, and it is closed with </prizeLevel>.  <prize> elements go between.  Every element, denoted with surrounding brackets <> must have a matching closing element </>.  What is confusing is the shorthand where the / can go at the end of the opening element, instead of having a matching </> element.  In other words, this is equivalent:

  <prizeLevel minPlayers="1" maxPlayers="2">
    <prize rank="1" name="1st Place" percent="100">
    </prize>
  </prizeLevel>
« Last Edit: May 24, 2018, 11:13:43 AM by Corey Cooper »

Waxer

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Xml code - Prize suggestions
« Reply #4 on: May 25, 2018, 05:54:58 AM »
Corey,

You are a legend - thanks mate. All done - this program is the only reason i still have a Windows Laptop!

cheers

sv