Page 1 of 1

XML help please

PostPosted: Thu Jan 28, 2010 10:31 am
by Industrial Helix
So this is the message I got from Forza about my 13 colonies xml..

There are a load of syntax errors in the XML:

Code: Select all
    line 3: <positions>  - Expecting an element , got nothing

    line 28: <required></required> - Did not expect element required there

    line 53: <required></required> - Did not expect element required there

    line 79: <required></required> - Did not expect element required there

    line 105: <required></required> - Did not expect element required there

    line 130: <required></required> - Did not expect element required there

    line 153: <required></required> - Did not expect element required there

    line 179: <required></required> - Did not expect element required there

    line 204: <required></required> - Did not expect element required there

    line 230: <required></required> - Did not expect element required there

    line 253: <required></required> - Did not expect element required there

    line 276: <required></required> - Did not expect element required there

    line 302: <required></required> - Did not expect element required there

    line 327: <required></required> - Did not expect element required there

    line 347: <overrides> - Expecting an element , got nothing

    line 349: <required>2</required> - Did not expect element required there

    line 372: <required>3</required> - Did not expect element required there

    line 396: <required>4</required> - Did not expect element required there

    line 421: <required>5</required> - Did not expect element required there

    line 447: <required>6</required> - Did not expect element required there

    line 474: <required>7</required> - Did not expect element required there

    line 502: <required>8</required> - Did not expect element required there

    line 510: <bombardments> - Expecting an element , got nothing

    line 518: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 518: <neutral></neutral> - Error validating datatype unsignedShort

    line 518: <neutral></neutral> - Element neutral failed to validate content

    line 519: <bonus></bonus> - Type short doesn't allow value ''

    line 519: <bonus></bonus> - Error validating datatype short

    line 519: <bonus></bonus> - Element bonus failed to validate content

    line 527: <bombardments> - Expecting an element , got nothing

    line 535: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 535: <neutral></neutral> - Error validating datatype unsignedShort

    line 535: <neutral></neutral> - Element neutral failed to validate content

    line 536: <bonus></bonus> - Type short doesn't allow value ''

    line 536: <bonus></bonus> - Error validating datatype short

    line 536: <bonus></bonus> - Element bonus failed to validate content

    line 547: <bombardments> - Expecting an element , got nothing

    line 555: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 555: <neutral></neutral> - Error validating datatype unsignedShort

    line 555: <neutral></neutral> - Element neutral failed to validate content

    line 556: <bonus></bonus> - Type short doesn't allow value ''

    line 556: <bonus></bonus> - Error validating datatype short

    line 556: <bonus></bonus> - Element bonus failed to validate content

    line 565: <bombardments> - Expecting an element , got nothing

    line 573: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 573: <neutral></neutral> - Error validating datatype unsignedShort

    line 573: <neutral></neutral> - Element neutral failed to validate content

    line 574: <bonus></bonus> - Type short doesn't allow value ''

    line 574: <bonus></bonus> - Error validating datatype short

    line 574: <bonus></bonus> - Element bonus failed to validate content

    line 585: <bombardments> - Expecting an element , got nothing

    line 593: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 593: <neutral></neutral> - Error validating datatype unsignedShort

    line 593: <neutral></neutral> - Element neutral failed to validate content

    line 594: <bonus></bonus> - Type short doesn't allow value ''

    line 594: <bonus></bonus> - Error validating datatype short

    line 594: <bonus></bonus> - Element bonus failed to validate content

    line 604: <bombardments> - Expecting an element , got nothing

    line 612: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 612: <neutral></neutral> - Error validating datatype unsignedShort

    line 612: <neutral></neutral> - Element neutral failed to validate content

    line 613: <bonus></bonus> - Type short doesn't allow value ''

    line 613: <bonus></bonus> - Error validating datatype short

    line 613: <bonus></bonus> - Element bonus failed to validate content

    line 625: <bombardments> - Expecting an element , got nothing

    line 633: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 633: <neutral></neutral> - Error validating datatype unsignedShort

    line 633: <neutral></neutral> - Element neutral failed to validate content

    line 634: <bonus></bonus> - Type short doesn't allow value ''

    line 634: <bonus></bonus> - Error validating datatype short

    line 634: <bonus></bonus> - Element bonus failed to validate content

    line 643: <bombardments> - Expecting an element , got nothing

    line 651: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 651: <neutral></neutral> - Error validating datatype unsignedShort

    line 651: <neutral></neutral> - Element neutral failed to validate content

    line 652: <bonus></bonus> - Type short doesn't allow value ''

    line 652: <bonus></bonus> - Error validating datatype short

    line 652: <bonus></bonus> - Element bonus failed to validate content

    line 661: <bombardments> - Expecting an element , got nothing

    line 669: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 669: <neutral></neutral> - Error validating datatype unsignedShort

    line 669: <neutral></neutral> - Element neutral failed to validate content

    line 670: <bonus></bonus> - Type short doesn't allow value ''

    line 670: <bonus></bonus> - Error validating datatype short

    line 670: <bonus></bonus> - Element bonus failed to validate content

    line 680: <bombardments> - Expecting an element , got nothing

    line 688: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 688: <neutral></neutral> - Error validating datatype unsignedShort

    line 688: <neutral></neutral> - Element neutral failed to validate content

    line 689: <bonus></bonus> - Type short doesn't allow value ''

    line 689: <bonus></bonus> - Error validating datatype short

    line 689: <bonus></bonus> - Element bonus failed to validate content

    line 700: <bombardments> - Expecting an element , got nothing

    line 708: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 708: <neutral></neutral> - Error validating datatype unsignedShort

    line 708: <neutral></neutral> - Element neutral failed to validate content

    line 709: <bonus></bonus> - Type short doesn't allow value ''

    line 709: <bonus></bonus> - Error validating datatype short

    line 709: <bonus></bonus> - Element bonus failed to validate content

    line 719: <bombardments> - Expecting an element , got nothing

    line 727: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 727: <neutral></neutral> - Error validating datatype unsignedShort

    line 727: <neutral></neutral> - Element neutral failed to validate content

    line 728: <bonus></bonus> - Type short doesn't allow value ''

    line 728: <bonus></bonus> - Error validating datatype short

    line 728: <bonus></bonus> - Element bonus failed to validate content

    line 739: <bombardments> - Expecting an element , got nothing

    line 747: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 747: <neutral></neutral> - Error validating datatype unsignedShort

    line 747: <neutral></neutral> - Element neutral failed to validate content

    line 748: <bonus></bonus> - Type short doesn't allow value ''

    line 748: <bonus></bonus> - Error validating datatype short

    line 748: <bonus></bonus> - Element bonus failed to validate content

    line 757: <bombardments> - Expecting an element , got nothing

    line 765: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 765: <neutral></neutral> - Error validating datatype unsignedShort

    line 765: <neutral></neutral> - Element neutral failed to validate content

    line 766: <bonus></bonus> - Type short doesn't allow value ''

    line 766: <bonus></bonus> - Error validating datatype short

    line 766: <bonus></bonus> - Element bonus failed to validate content

    line 779: <bombardments> - Expecting an element , got nothing

    line 787: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 787: <neutral></neutral> - Error validating datatype unsignedShort

    line 787: <neutral></neutral> - Element neutral failed to validate content

    line 788: <bonus></bonus> - Type short doesn't allow value ''

    line 788: <bonus></bonus> - Error validating datatype short

    line 788: <bonus></bonus> - Element bonus failed to validate content

    line 796: <bombardments> - Expecting an element , got nothing

    line 804: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 804: <neutral></neutral> - Error validating datatype unsignedShort

    line 804: <neutral></neutral> - Element neutral failed to validate content

    line 805: <bonus></bonus> - Type short doesn't allow value ''

    line 805: <bonus></bonus> - Error validating datatype short

    line 805: <bonus></bonus> - Element bonus failed to validate content

    line 813: <bombardments> - Expecting an element , got nothing

    line 821: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 821: <neutral></neutral> - Error validating datatype unsignedShort

    line 821: <neutral></neutral> - Element neutral failed to validate content

    line 822: <bonus></bonus> - Type short doesn't allow value ''

    line 822: <bonus></bonus> - Error validating datatype short

    line 822: <bonus></bonus> - Element bonus failed to validate content

    line 833: <bombardments> - Expecting an element , got nothing

    line 842: <bonus></bonus> - Type short doesn't allow value ''

    line 842: <bonus></bonus> - Error validating datatype short

    line 842: <bonus></bonus> - Element bonus failed to validate content

    line 852: <bombardments> - Expecting an element , got nothing

    line 860: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 860: <neutral></neutral> - Error validating datatype unsignedShort

    line 860: <neutral></neutral> - Element neutral failed to validate content

    line 861: <bonus></bonus> - Type short doesn't allow value ''

    line 861: <bonus></bonus> - Error validating datatype short

    line 861: <bonus></bonus> - Element bonus failed to validate content

    line 871: <bombardments> - Expecting an element , got nothing

    line 879: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 879: <neutral></neutral> - Error validating datatype unsignedShort

    line 879: <neutral></neutral> - Element neutral failed to validate content

    line 880: <bonus></bonus> - Type short doesn't allow value ''

    line 880: <bonus></bonus> - Error validating datatype short

    line 880: <bonus></bonus> - Element bonus failed to validate content

    line 894: <bombardments> - Expecting an element , got nothing

    line 902: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 902: <neutral></neutral> - Error validating datatype unsignedShort

    line 902: <neutral></neutral> - Element neutral failed to validate content

    line 903: <bonus></bonus> - Type short doesn't allow value ''

    line 903: <bonus></bonus> - Error validating datatype short

    line 903: <bonus></bonus> - Element bonus failed to validate content

    line 914: <bombardments> - Expecting an element , got nothing

    line 922: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 922: <neutral></neutral> - Error validating datatype unsignedShort

    line 922: <neutral></neutral> - Element neutral failed to validate content

    line 923: <bonus></bonus> - Type short doesn't allow value ''

    line 923: <bonus></bonus> - Error validating datatype short

    line 923: <bonus></bonus> - Element bonus failed to validate content

    line 932: <bombardments> - Expecting an element , got nothing

    line 940: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 940: <neutral></neutral> - Error validating datatype unsignedShort

    line 940: <neutral></neutral> - Element neutral failed to validate content

    line 941: <bonus></bonus> - Type short doesn't allow value ''

    line 941: <bonus></bonus> - Error validating datatype short

    line 941: <bonus></bonus> - Element bonus failed to validate content

    line 950: <bombardments> - Expecting an element , got nothing

    line 958: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 958: <neutral></neutral> - Error validating datatype unsignedShort

    line 958: <neutral></neutral> - Element neutral failed to validate content

    line 959: <bonus></bonus> - Type short doesn't allow value ''

    line 959: <bonus></bonus> - Error validating datatype short

    line 959: <bonus></bonus> - Element bonus failed to validate content

    line 968: <bombardments> - Expecting an element , got nothing

    line 976: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 976: <neutral></neutral> - Error validating datatype unsignedShort

    line 976: <neutral></neutral> - Element neutral failed to validate content

    line 977: <bonus></bonus> - Type short doesn't allow value ''

    line 977: <bonus></bonus> - Error validating datatype short

    line 977: <bonus></bonus> - Element bonus failed to validate content

    line 985: <bombardments> - Expecting an element , got nothing

    line 993: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 993: <neutral></neutral> - Error validating datatype unsignedShort

    line 993: <neutral></neutral> - Element neutral failed to validate content

    line 994: <bonus></bonus> - Type short doesn't allow value ''

    line 994: <bonus></bonus> - Error validating datatype short

    line 994: <bonus></bonus> - Element bonus failed to validate content

    line 1005: <bombardments> - Expecting an element , got nothing

    line 1013: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1013: <neutral></neutral> - Error validating datatype unsignedShort

    line 1013: <neutral></neutral> - Element neutral failed to validate content

    line 1014: <bonus></bonus> - Type short doesn't allow value ''

    line 1014: <bonus></bonus> - Error validating datatype short

    line 1014: <bonus></bonus> - Element bonus failed to validate content

    line 1025: <bombardments> - Expecting an element , got nothing

    line 1033: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1033: <neutral></neutral> - Error validating datatype unsignedShort

    line 1033: <neutral></neutral> - Element neutral failed to validate content

    line 1034: <bonus></bonus> - Type short doesn't allow value ''

    line 1034: <bonus></bonus> - Error validating datatype short

    line 1034: <bonus></bonus> - Element bonus failed to validate content

    line 1042: <bombardments> - Expecting an element , got nothing

    line 1050: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1050: <neutral></neutral> - Error validating datatype unsignedShort

    line 1050: <neutral></neutral> - Element neutral failed to validate content

    line 1051: <bonus></bonus> - Type short doesn't allow value ''

    line 1051: <bonus></bonus> - Error validating datatype short

    line 1051: <bonus></bonus> - Element bonus failed to validate content

    line 1061: <bombardments> - Expecting an element , got nothing

    line 1070: <bonus></bonus> - Type short doesn't allow value ''

    line 1070: <bonus></bonus> - Error validating datatype short

    line 1070: <bonus></bonus> - Element bonus failed to validate content

    line 1079: <bombardments> - Expecting an element , got nothing

    line 1088: <bonus></bonus> - Type short doesn't allow value ''

    line 1088: <bonus></bonus> - Error validating datatype short

    line 1088: <bonus></bonus> - Element bonus failed to validate content

    line 1100: <bombardments> - Expecting an element , got nothing

    line 1108: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1108: <neutral></neutral> - Error validating datatype unsignedShort

    line 1108: <neutral></neutral> - Element neutral failed to validate content

    line 1109: <bonus></bonus> - Type short doesn't allow value ''

    line 1109: <bonus></bonus> - Error validating datatype short

    line 1109: <bonus></bonus> - Element bonus failed to validate content

    line 1119: <bombardments> - Expecting an element , got nothing

    line 1127: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1127: <neutral></neutral> - Error validating datatype unsignedShort

    line 1127: <neutral></neutral> - Element neutral failed to validate content

    line 1128: <bonus></bonus> - Type short doesn't allow value ''

    line 1128: <bonus></bonus> - Error validating datatype short

    line 1128: <bonus></bonus> - Element bonus failed to validate content

    line 1139: <bombardments> - Expecting an element , got nothing

    line 1147: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1147: <neutral></neutral> - Error validating datatype unsignedShort

    line 1147: <neutral></neutral> - Element neutral failed to validate content

    line 1148: <bonus></bonus> - Type short doesn't allow value ''

    line 1148: <bonus></bonus> - Error validating datatype short

    line 1148: <bonus></bonus> - Element bonus failed to validate content

    line 1156: <bombardments> - Expecting an element , got nothing

    line 1164: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1164: <neutral></neutral> - Error validating datatype unsignedShort

    line 1164: <neutral></neutral> - Element neutral failed to validate content

    line 1165: <bonus></bonus> - Type short doesn't allow value ''

    line 1165: <bonus></bonus> - Error validating datatype short

    line 1165: <bonus></bonus> - Element bonus failed to validate content

    line 1174: <bombardments> - Expecting an element , got nothing

    line 1182: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1182: <neutral></neutral> - Error validating datatype unsignedShort

    line 1182: <neutral></neutral> - Element neutral failed to validate content

    line 1183: <bonus></bonus> - Type short doesn't allow value ''

    line 1183: <bonus></bonus> - Error validating datatype short

    line 1183: <bonus></bonus> - Element bonus failed to validate content

    line 1192: <bombardments> - Expecting an element , got nothing

    line 1200: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1200: <neutral></neutral> - Error validating datatype unsignedShort

    line 1200: <neutral></neutral> - Element neutral failed to validate content

    line 1201: <bonus></bonus> - Type short doesn't allow value ''

    line 1201: <bonus></bonus> - Error validating datatype short

    line 1201: <bonus></bonus> - Element bonus failed to validate content

    line 1209: <bombardments> - Expecting an element , got nothing

    line 1217: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1217: <neutral></neutral> - Error validating datatype unsignedShort

    line 1217: <neutral></neutral> - Element neutral failed to validate content

    line 1218: <bonus></bonus> - Type short doesn't allow value ''

    line 1218: <bonus></bonus> - Error validating datatype short

    line 1218: <bonus></bonus> - Element bonus failed to validate content

    line 1226: <bombardments> - Expecting an element , got nothing

    line 1235: <bonus></bonus> - Type short doesn't allow value ''

    line 1235: <bonus></bonus> - Error validating datatype short

    line 1235: <bonus></bonus> - Element bonus failed to validate content

    line 1243: <bombardments> - Expecting an element , got nothing

    line 1252: <bonus></bonus> - Type short doesn't allow value ''

    line 1252: <bonus></bonus> - Error validating datatype short

    line 1252: <bonus></bonus> - Element bonus failed to validate content

    line 1260: <bombardments> - Expecting an element , got nothing

    line 1268: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1268: <neutral></neutral> - Error validating datatype unsignedShort

    line 1268: <neutral></neutral> - Element neutral failed to validate content

    line 1269: <bonus></bonus> - Type short doesn't allow value ''

    line 1269: <bonus></bonus> - Error validating datatype short

    line 1269: <bonus></bonus> - Element bonus failed to validate content

    line 1278: <bombardments> - Expecting an element , got nothing

    line 1286: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1286: <neutral></neutral> - Error validating datatype unsignedShort

    line 1286: <neutral></neutral> - Element neutral failed to validate content

    line 1287: <bonus></bonus> - Type short doesn't allow value ''

    line 1287: <bonus></bonus> - Error validating datatype short

    line 1287: <bonus></bonus> - Element bonus failed to validate content

    line 1296: <bombardments> - Expecting an element , got nothing

    line 1304: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1304: <neutral></neutral> - Error validating datatype unsignedShort

    line 1304: <neutral></neutral> - Element neutral failed to validate content

    line 1305: <bonus></bonus> - Type short doesn't allow value ''

    line 1305: <bonus></bonus> - Error validating datatype short

    line 1305: <bonus></bonus> - Element bonus failed to validate content

    line 1313: <bombardments> - Expecting an element , got nothing

    line 1321: <neutral></neutral> - Type unsignedShort doesn't allow value ''

    line 1321: <neutral></neutral> - Error validating datatype unsignedShort

    line 1321: <neutral></neutral> - Element neutral failed to validate content

    line 1322: <bonus></bonus> - Type short doesn't allow value ''

    line 1322: <bonus></bonus> - Error validating datatype short

    line 1322: <bonus></bonus> - Element bonus failed to validate content

    Summary: 315 errors and 0 warnings detected in final.xml


Do i just delete those lines?

Re: XML help please

PostPosted: Thu Jan 28, 2010 11:45 am
by chipv
What is the URL of your XML?

thenobodies posted a version which looked ok, I think, but your link doesn't.

How did you generate this, btw?

Re: XML help please

PostPosted: Thu Jan 28, 2010 12:01 pm
by Industrial Helix
It's kind of a hodgepodge of my own just writing it, then modifying it with your XML wizard thing and then what Nobodies changed about it.

here's the link: http://h1.ripway.com/industhelix/final.xml

Re: XML help please

PostPosted: Thu Jan 28, 2010 12:12 pm
by chipv
Industrial Helix wrote:It's kind of a hodgepodge of my own just writing it, then modifying it with your XML wizard thing and then what Nobodies changed about it.

here's the link: http://h1.ripway.com/industhelix/final.xml


This is my fault. I spoke to yeti only yesterday about this.

The XMl Wizard prints empty tags (I thought this should have been ok) - I need to remove these tonight.

Meantime I will fix your XML personally.

Re: XML help please

PostPosted: Thu Jan 28, 2010 1:21 pm
by yeti_c
chipv wrote:
Industrial Helix wrote:It's kind of a hodgepodge of my own just writing it, then modifying it with your XML wizard thing and then what Nobodies changed about it.

here's the link: http://h1.ripway.com/industhelix/final.xml


This is my fault. I spoke to yeti only yesterday about this.

The XMl Wizard prints empty tags (I thought this should have been ok) - I need to remove these tonight.

Meantime I will fix your XML personally.


I guess that answers it directly though - the XML cannot handle empty tags!!

C>

Re: XML help please

PostPosted: Thu Jan 28, 2010 4:37 pm
by chipv
Ok fixed. The Wizard now autocleans up empty tags. It also auto-corrected your overrides.

XML: http://www.fileden.com/files/2008/5/8/1902058/helix.xml

Sorry bout that, I will chase up for pass criteria.

Re: XML help please

PostPosted: Sat Jan 30, 2010 4:22 am
by chipv
Did you try this out in the end? Hope I didn't waste my time.

Re: XML help please

PostPosted: Sat Jan 30, 2010 6:42 pm
by Industrial Helix
Yeah, I basically took your xml and for some reason I was missing a bonus, presumably my own fault though. Thanks, it did help!

Re: XML help please NEW QUESTION 3/

PostPosted: Mon Mar 22, 2010 9:58 am
by Industrial Helix
How are auto-deploys scripted into the XML? I checked the how to and got nothing.

Re: XML help please NEW QUESTION 3/

PostPosted: Mon Mar 22, 2010 10:11 am
by natty dread
Industrial Helix wrote:How are auto-deploys scripted into the XML? I checked the how to and got nothing.


IIRC They are put under the "territory" tag in a <bonus> tag. Like this:

<bonus>3</bonus>

or for decay:

<bonus>-1</bonus>

But why not just use the wizard and not worry about it? ;)

Re: XML help please

PostPosted: Mon Mar 22, 2010 10:49 am
by Industrial Helix
Well, Gilligan wrote my xml and I was scanning through it and wondered why I never saw anything that mentioned autodeploy. Just a curiosity question, really.