Conquer Club

XML Help.

Topics that are not maps. Discuss general map making concepts, techniques, contests, etc, here.

Moderator: Cartographers

Forum rules
Please read the Community Guidelines before posting.

XML Help.

Postby lanyards on Wed Nov 21, 2007 5:07 pm

When I put my XML in the tester, it says:

"<neutral>3</neutral> - Did not expect element neutral there"

What does that mean?

Here is the segment of the XML where the error is:

Code: Select all
<territory>
      <name>Moscow</name>
      <borders>
         <border>Sevastopol</border>
         <border>Kiev</border>
         <border>Stalingrad</border>
         <border>Leningrad</border>
         <border>Tatarstan</border>
         <border>Orenburg</border>
      </borders>
      <neutral>3</neutral>
      <coordinates>
         <smallx>189</smallx>
         <smally>119</smally>
         <largex>254</largex>
         <largey>151</largey>
      </coordinates>
   </territory>


When I remove the neutral, the XML is all good. Could anyone tell me how to make a territory start out with 3 neutrals? Thanks.

--lanyards
Image
WANT AN ADVANTAGE WHILE WORKING TOWARDS MEDALS?
https://www.conquerclub.com/forum/viewtopic.php?f=529&t=226714
User avatar
Major lanyards
 
Posts: 1378
Joined: Sat Feb 24, 2007 1:31 am
2

Postby yeti_c on Wed Nov 21, 2007 5:08 pm

The XML tester is quite strict about ordering - it wants the neutral bit to below the co-ords I think.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby lanyards on Wed Nov 21, 2007 5:10 pm

The XML tutorial on the tools says it has to be between the borders and the coordinates. I'll check to make sure it works though. Thanks for the help.

--lanyards
Image
WANT AN ADVANTAGE WHILE WORKING TOWARDS MEDALS?
https://www.conquerclub.com/forum/viewtopic.php?f=529&t=226714
User avatar
Major lanyards
 
Posts: 1378
Joined: Sat Feb 24, 2007 1:31 am
2

Postby yeti_c on Wed Nov 21, 2007 5:12 pm

lanyards wrote:The XML tutorial on the tools says it has to be between the borders and the coordinates. I'll check to make sure it works though. Thanks for the help.

--lanyards


The tut might be wrong - can you confirm this works - and I'll get the tut updated.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby yeti_c on Wed Nov 21, 2007 5:13 pm

Code: Select all
<territory>
  <name>Sanctuary</name>
- <borders>
  <border>Lol'n</border>
  <border>G'th</border>
  <border>U'rl</border>
  <border>Arg'h</border>
  <border>T'ro</border>
  </borders>
- <coordinates>
  <smallx>202</smallx>
  <smally>212</smally>
  <largex>271</largex>
  <largey>276</largey>
  </coordinates>
  <neutral>3</neutral>
  </territory>


This is from AOR - and this doesn't complain... so I assume it must be at the end...

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby lanyards on Wed Nov 21, 2007 5:13 pm

Ya it works. Thanks again.

But the tutorial is Lackattacks tutorial, posted by KEYOGI.
Image
WANT AN ADVANTAGE WHILE WORKING TOWARDS MEDALS?
https://www.conquerclub.com/forum/viewtopic.php?f=529&t=226714
User avatar
Major lanyards
 
Posts: 1378
Joined: Sat Feb 24, 2007 1:31 am
2

Postby yeti_c on Wed Nov 21, 2007 5:14 pm

lanyards wrote:Ya it works. Thanks again.

But the tutorial is Lackattacks tutorial, posted by KEYOGI.


I'll inform them it's wrong... - or Andy can if he reads here...

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby Twill on Wed Nov 21, 2007 9:33 pm

Updated. Please check to make sure I got it right.

http://www.conquerclub.com/forum/viewto ... 900#569900
User avatar
Corporal 1st Class Twill
 
Posts: 3630
Joined: Fri Jan 20, 2006 10:54 pm

Postby lanyards on Wed Nov 21, 2007 9:51 pm

Ya Twill, you got it right.

--lanyards
Image
WANT AN ADVANTAGE WHILE WORKING TOWARDS MEDALS?
https://www.conquerclub.com/forum/viewtopic.php?f=529&t=226714
User avatar
Major lanyards
 
Posts: 1378
Joined: Sat Feb 24, 2007 1:31 am
2


Return to Foundry Discussions

Who is online

Users browsing this forum: No registered users

cron