GnuCash XML spec

Derek Atkins warlord at MIT.EDU
Thu Nov 1 12:13:49 EDT 2012


Ngewi Fet <ngewif at gmail.com> writes:

> On Thu, Nov 1, 2012 at 4:12 PM, Derek Atkins <warlord at mit.edu> wrote:
>
>     John Ralls <jralls at ceridwen.us> writes:
>    
>     > Ngewi,
>     >
>     > You can use Trang (http://www.thaiopensource.com/relaxng/trang.html) to
>     convert an RNG schema to XSD.
>     >
>
> Thanks John, I'll check out the converter or just try to figure out RNG
>  
>
>     > Gnucash-v2.rnc was contributed only a few months ago, so it's current.
>     Whether or not it's complete or correct is another matter.
>    
>     Note also that the rnc/xsd is NOT canonical..  It is informative only,
>     and might change at any time.  GnuCash uses hand-build
>     generators/parsers and does not use any schema files itself.  So YMMV.
>
> If I understand right, this means that only what is implemented in GnuCash is
> the current spec? No other documentation cannot be relied upon to be factual?

Correct.  The schema files are informative only.

> Also, what is the policy of GnuCash towards manipulating the XML. Because I
> remember that for the database, I once read something like "We do not support
> modifications to the database from outside the GnuCash 
> API. ". http://gnucash.1415818.n4.nabble.com/
> queries-on-mysql-tp3053682p3053871.html
>
> Is modifying the XML also actively discouraged?

Yes.  All data 'writes' should only happen through the GnuCash API.

-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