Re: Gedcom example

 > If the goal is to validate an input stream and determine whether it
 > conforms to the Gedcom grammar or not, then failing to detect such
 > errors is a flaw; if the goal is to parse Gedcom data and provide an
 > accurate XML representation of it, then it may be a matter of
 > indifference what the parser does with other input. If there is no
 > requirement to raise an error on input that is not syntactically correct
 > Gedcom data, then the failure to detect the 23/94 error is not a flaw.
This is similar to the grammars we use for dates, many of which will accept 
99 December 9999 with indifference.

It is a point I cover in my tutorial: whether you want to check and 
convert, or just convert is a decision you have to make.

Steven

Received on Thursday, 4 August 2022 11:40:12 UTC