r15486 - gnucash/trunk/src - SX "enabled" patch from Peter McAlpine <peter at aoeu.ca>.

Nathan Buchanan nbinont at gmail.com
Thu Feb 1 20:10:35 EST 2007


On 2/1/07, Derek Atkins <warlord at mit.edu> wrote:
>
> Quoting Josh Sled <jsled at asynchronous.org>:
>
> > To preempt your question about "how do you tell a broken datafile from
> > one with simply new tags?", I say: "you don't".  You let XML
> > well-formed-ness deal with really corrupted datafiles, and you ignore
> > any tags or attributes that you don't recognize.   If you then ignore
> > valid future data, fine; if you ignore invalid/broken data, fine.  The
> > utility of reading a wider set of datafiles is higher than the risk of
> > reading inconsistent data, with some amount of care taken in the future.
>
> I still maintain that loading-and-ignoring is WORSE than failing-to-load.
> When you load-and-ignore, then when you save you've now LOST data, and
> worse, you've lost it silently!  I think that's worse than just failing to
> load the datafile.
>
> As a lurking user, I'd like to say that data should not be lost silently.
At worst, display a message so that the user can abort the load.

Nathan


More information about the gnucash-devel mailing list