Page 1 of 1

XML Help.

PostPosted: Wed Nov 21, 2007 5:07 pm
by lanyards
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

PostPosted: Wed Nov 21, 2007 5:08 pm
by yeti_c
The XML tester is quite strict about ordering - it wants the neutral bit to below the co-ords I think.

C.

PostPosted: Wed Nov 21, 2007 5:10 pm
by lanyards
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

PostPosted: Wed Nov 21, 2007 5:12 pm
by yeti_c
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.

PostPosted: Wed Nov 21, 2007 5:13 pm
by yeti_c
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.

PostPosted: Wed Nov 21, 2007 5:13 pm
by lanyards
Ya it works. Thanks again.

But the tutorial is Lackattacks tutorial, posted by KEYOGI.

PostPosted: Wed Nov 21, 2007 5:14 pm
by yeti_c
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.

PostPosted: Wed Nov 21, 2007 9:33 pm
by Twill
Updated. Please check to make sure I got it right.

http://www.conquerclub.com/forum/viewto ... 900#569900

PostPosted: Wed Nov 21, 2007 9:51 pm
by lanyards
Ya Twill, you got it right.

--lanyards