Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Updating the PGN Standard using XML

Author: Manfred Rosenboom

Date: 22:57:15 06/08/04

Go up one level in this thread


Dear Andrew,

step forward to XML is IMHO a good idea!

In your example I don't understand, why you still use quotes (") in the
elements, I expect the XML data without quotes:

<?xml version='1.0'?>
<Games>
<Game>
<Event>ICC tourney 517 (15 1)</Event>
<Site>Internet Chess Club</Site>
<Date>2004.04.23</Date>
<Round>1</Round>
<White>PostModernist</White>
<Black>Trueno</Black>
<Result>1-0</Result>
<ICCResult>Black resigns</ICCResult>
<WhiteElo>2423</WhiteElo>
<BlackElo>1862</BlackElo>
<Opening>French: Winawer, advance variation</Opening>
<ECO>C16</ECO>
<NIC>FR.09</NIC>
<Time>14:04:48</Time>
<TimeControl>900+1</TimeControl>
<Moves> 1. e4 e6 2. d4 d5 3. Nc3 Bb4 4. e5 Nc6 5. Nf3 Nge7 6. Bd3 Bxc3+
7. bxc3 O-O 8. Bxh7+ Kxh7 9. Ng5+ Kg8 10. Qh5 Re8 11. Ba3 Nb4 12. Bxb4 c5
13. Bxc5 Qd6 {Black resigns} 1-0  </Moves>
</Game>
</Games>

You can create a schema definition for the XML data, to make clear, what type of
data is expected with each element. Also I'm not sure, whether it is a good idea
to have all game move data in one <Moves> element. Wouldn't it be more XML like
to have extra (sub-) elements for variations, comments and annotation glyphs ?

Best,
Manfred



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.