Strange XML error

Do you need help installing or using ZunTzu? Would you like to report a bug?

Moderators: Ichibrothers, Cambronne

Post Reply
Hedge-o-Matic
010
Posts: 42
Joined: 20 Apr 2008, 01:43
Location: The back of your mind

Strange XML error

Post 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?
User avatar
Jebbou
Posts: 12
Joined: 09 May 2008, 17:14
Location: Monreal, Canada

Post 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
Hedge-o-Matic
010
Posts: 42
Joined: 20 Apr 2008, 01:43
Location: The back of your mind

Post by Hedge-o-Matic »

Wow, so I do! Good eye! I wonder if that could be the problem...
Last edited by Hedge-o-Matic on 16 Jul 2008, 20:19, edited 1 time in total.
User avatar
Jerome
Site Admin
Posts: 974
Joined: 22 Jun 2006, 21:31
Location: France
Contact:

Post 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" >
Jerome, ZunTzu developer.
Hedge-o-Matic
010
Posts: 42
Joined: 20 Apr 2008, 01:43
Location: The back of your mind

Post 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!
User avatar
Jerome
Site Admin
Posts: 974
Joined: 22 Jun 2006, 21:31
Location: France
Contact:

Post 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.
Jerome, ZunTzu developer.
Post Reply