Hi Gregor I think there already is an XML DTD
Whether it will meet your requirements is another thing; I will try and hunt it down On Tue, 25 Mar 2014 18:04:49 +0100 "Gregor Cramer" <rema...@gmx.net> wrote: > Due to the fact that PGN > (http://en.wikipedia.org/wiki/Portable_Game_Notation) is not sufficient > for modern chess applications, I'm working on a different format, > especially for the backup of unsaved games. I'm in fact not very > familiar with XML, so I need some suggestions. My first idea is > something like this: > > --------------------------------------------------------------------- > <?xml version="1.0"?> > <!-- cif --> > > <meta charset=utf-8"/> > <meta author="Scidb"/> > > <description lang="en">Only an incomplete example</description> > > <game variant="normal" startpos="518"> > <tag name="Event">At home</tag> > <tag name="White">It's me</tag> > <tag name="Black">It's my opponent</tag> > > <moves> > 1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.Ng5 $5 > <post lang="en">Due to Tarrasch this is a <b>patzer</b>.</post> > <post lang="de">Laut Tarrasch ist dies ein > <b>Patzerzug</b>.</post> <arrow from="g5" to="f7"/> > 4...Bc5 > <marker type="square" color="yellow" to="f2"/> > (d5 <post lang="en">This is the usual reply.</post>) > 5.Nxf7 Bxf2+ > <trailing lang="en">I've abandoned, that's too much for > me.</trailing> </moves> > </game> > --------------------------------------------------------------------- > > This example is of course not complete. > > The chess variant and the start position will be > given with the <game...> markup, because this is also > an information for the parser. > <trailing>...</trailing> is a trailing comment, > <post>-...</post> is a comment after last move, > <arrow ...> defines an arrow, and > <marker ...> defines a coloured square. > The syntax for comments is a subset of xhtml (this > makes it parseable for XML parsers, I think), and may > contain UTF-8 characters. But I'm not satisfied with > the syntax of the tags like > <tag name="Event">At home</tag> > probably somebody knows an alternative way. > > <!-- cif --> is the magic number, and is an abbreviation > for "Chess Interchange Format". > > Gregor > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Scidb-users mailing list > Scidb-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/scidb-users -- Drew Ferguson AFC Commercial http://www.afccommercial.co.uk