Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Updating the PGN Standard using XML

Author: Joshua Shriver

Date: 20:56:06 06/08/04

Go up one level in this thread



>>
>>As for engine developers I would think it would be a little more cumbersome to
>>add a XML parser (unless it's opensource and just linked to an existing one).
>
>I really don't see how this would be too much harder than writing a full PGN
>parser. Of course, for a .Net engine, this would be very easy, but I
>digress...:)
>
>

I started looking into this further after my first post. I agree especially if
you're using Visual Studio you could just use XML DOM and voila :)

I wrote a small PGN parser, but it was pretty generic and really only handle a
couple key fields and the moves. I see that if you wanted more information such
as  comments or analysis information this could become a problem. Your comment
on just adding a <annotate></annotate> tag would make it a lot easier.

Alas I see the difference. More power to you guys or whomever wants to develop
this further. If there is an active project up, I'd be willing to help out if
it's an OSS project.

It shouldn't be to hard to whip together a pgn->xml translator. Especially if
you just use the field names as the tag names <site><white><black><date> etc..

Sincerely,
Joshua Shriver




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.