Page 1 of 1

Strange XML error

Posted: 02 Jul 2008, 23:16
by Hedge-o-Matic
I've got a problem with this XML:

Code: Select all

<?xml version="1.0" encoding="windows-1252" ?>
<game-box
	name="Tomb Police Desert Chase"
	description="Race and fight desert bandits to recover ancient artifacts."
	copyright="Aaron Bradford Starr 2008"
        startup-scenario="standard.zts">

<dice-hand type="D6">
<dice count="6" color="ffffff" pips="000000" />
	</dice-hand>

<map name="Table" image-file="table.jpg>

<counter-sheet name="Board Tiles"
               front-image-file="TileSheet.jpg" front-resolution="150 dpi"
               back-image-file="TileSheetBack.jpg" back-resolution="150 dpi" />
               <counter-section rows="4" columns="8"
			front-left="0" front-top="0" front-right="1800" front-bottom="2250"
			back-left="0" back-top="0" back-right="1800" back-bottom="2250" />
         </counter-sheet>


</game-box>
The error seems to target the "<" on the counter-sheet section. This XML has worked in other gameboxes, so I'm wondering what's wrong. Any thoughts?

Posted: 03 Jul 2008, 02:29
by Jebbou
Hi there hedge,

I think you've got a quote missing on the <map> line. This probably cause Zuntzu to misread the rest of your file! I hope this will resolve your issue.

Regards,

Etienne

Posted: 03 Jul 2008, 23:04
by Hedge-o-Matic
Wow, so I do! Good eye! I wonder if that could be the problem...

Posted: 06 Jul 2008, 09:14
by Jerome
I see two errors.

1 - Replace...

Code: Select all

<map name="Table" image-file="table.jpg>
...by...

Code: Select all

<map name="Table" image-file="table.jpg" />
...or (it's equivalent)...

Code: Select all

<map name="Table" image-file="table.jpg">
</map>
2 - Replace...

Code: Select all

back-resolution="150 dpi" />
...by...

Code: Select all

back-resolution="150 dpi" >

Posted: 16 Jul 2008, 20:37
by Hedge-o-Matic
Thanks, but now I get the error that my other fixes left me with:

Error: '<', hexadecimal value ox3c, is an invalid attribute character. Line 14, position 1...

I'm not only not sure what this could be referring to, but am also unsure i it's referring to position 1, or some position whose number is being truncated by the fixed-size message box. Help me, Obi-Wan!

Posted: 17 Jul 2008, 06:34
by Jerome
Hedge-o-Matic wrote:Error: '<', hexadecimal value ox3c, is an invalid attribute character. Line 14, position 1...
'<' has special meaning in XML, so you're not allowed to put such a character in the values between double quotes.
It's probably an indication that you forgot a double quote somewhere, my young Padawan.