gnucash2 data file dtd

Christian Krause chkr at plauener.de
Thu Nov 17 14:50:35 EST 2005


Hi,

Recently I had a problem with loading gnucash data files. To make sure
that my data file isn't corrupt I tried to validate it against the
supplied dtd (gnucash/src/doc/xml/io-gncxml-version2.dtd).

Unfortunately the validation stops very early when parsing the different
dtd files and shows some errors in the dtd.

Here is a small part of the output:
--------------------snip--------------------
xmllint --valid  --dtdvalid io-gncxml-version2.dtd a.xml 
Entity: line 1: parser error : ContentDecl : ',' '|' or ')' expected
 %slot-val-type; 
                ^
Entity: line 1: 
(slot+?, slot:value+?, #PCDATA?)
      ^
Entity: line 1: parser error : expected '>'
 %slot-val-type; 
                ^
Entity: line 1: 
(slot+?, slot:value+?, #PCDATA?)
-------------------------------------------

Before I start to investigate the problem further, I'd like to know
whether these dtds should match the current data format or is the dtd
somehow outdated?


Best regards,
Christian


More information about the gnucash-devel mailing list