r21577 - gnucash/trunk/src/backend/xml - Fix xml backend to load and save invoice kvp values.

Derek Atkins warlord at MIT.EDU
Tue Dec 6 11:56:06 EST 2011


John Ralls <jralls at ceridwen.us> writes:

> There's a catch here: An XML file can have an element or not, and as
> long as the file isn't validated against a schema that declares the
> element mandatory (and Gnucash doesn't use schema validation AFAIK),
> if it's not there no problem, so 2.4.8 can read the file and be happy
> if there aren't any credit memos.

That's not completely true.  The GnuCash XML backend is hand-coded, and
historically it will complain if it sees an element that it does not
know about.  So no, it is not validated, but it is rather rigid in its
reading (at least historically).  Feel free to try it.  :)

It might not error out, per se, but it will cause load failures.

> One last thing: I don't think that we want to make a change breaking
> file/db compatibility in the middle of a release series. If it's
> required the feature should wait for 2.6 -- so we branch 2.5 soon and
> the one or two users who are loud about wanting the feature can use
> test versions.

I agree, but we want to make the change so that you can still use 2.6
w/o using the new feature and still load the data file into 2.4.

> Regards,
> John Ralls

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list