Sorting out QSF import and export

Derek Atkins warlord at MIT.EDU
Wed Jun 10 10:49:04 EDT 2009

David Goodenough <david.goodenough at> writes:

>> > Domain-specific import/export formats and import/export logic are going
>> > to be far easier to implement, debug and use.
>> Maybe..  Keep in mind that the information in an import object is not
>> necessarily the same used internally.   Yes, one COULD use the GNC XML
>> object formats for import/export, but you'd still need to recode
>> the I/O to handle import objects differently (e.g. lack of a GUID).
> Where is the GNC XML format defined?  I have some ideas that I have
> used elsewhere to fix the GUID problem.

It's defined in the sources.  see src/business/business-core/xml

What ideas do you have to fix the GUID problem?  GnuCash requires
some GUID references between objects which could cause problems when
you just randomly try to create the XML by hand.

>> > Hopefully, you can find something to leverage in the existing (generic,
>> > not QIF-specific) importer/exporter, but for things like Customers and
>> > Vendors where there's not an src/engine/Account to match against, I'm
>> > not sure if the existing code will be trivially adaptable; those Vendors
>> > and Customers are different data-sources for matching purposes.
> Well there can be a match, it might not be by ID, but it might by some
> other field match.

Of course; an import match would be by Company Name, or maybe address.

>> The existing code was pretty sophisticated in that you could plug
>> in various matching rules per object and such.  But it was very buggy,
>> and it's been a long time since I've looked at it.
> Are you talking about the QSF code, or the other import/export code?

QSF..  in the merge code.  dialog-merge?  druid-merge?  Something like that.


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

More information about the gnucash-devel mailing list